🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.program
1 messages
1 total messages Started by �ϵ� Sun, 19 Apr 1998 00:00
vc���ָ��68ƪ(2) (ת��)
#1181
Author: �ϵ�
Date: Sun, 19 Apr 1998 00:00
113 lines
5141 bytes
2m������:m TINA (�ռ�����)
2m��  ��:m RAD
2m��  ��:m  VC��̼���68ƪ(2)
2m����վ:m '3m�Ͻ�ɺ�m' (Mon Apr  6 08:33:35 1998) , 5mվ���ż�m

[������ҳ] [����������] [ȫ��������]

������: knofler (Break Heart), ����: Visual 
��  ��: vc���ָ��68ƪ(2) (ת��) 
����վ: BBS ˮľ�廪վ (Sun Oct 19 22:23:27 1997) 

�� ��������ת���� Programming ������ �� 
�� ԭ���� knofler ��� �� 

  9-16: �Դ��ڵ� ���� 

  9. ��θı䴰�ڵ� ͼ��? 
    �򴰿ڷ��� WM_SECTION��Ϣ�� 
    Example: 
      HICON hIcon=AfxGetApp() ->LoadIcon(IDI_ICON); 
      ASSERT(hIcon); 
      AfxGetMainWnd() ->SendMessage(WM_SECTION,TRUE,(LPARAM) hIcon); 

10. ��θı䴰�ڵ� ȱʡ���? 
      ���� CWnd:: PreCreateWindow ���޸�CREATESTRUCT�ṹ��ָ�����ڷ�����
�� 
     ������Ϣ.  
     Example: Delete "Max" Button and Set Original Window's Position and 
Size 
       
      BOOL CMainFrame::  PreCreateWindow (CREATESTRUCT &cs) 
      {        
       cs.style &=~WS_MAXINIZEMOX; 

       cs.x=cs.y=0; 
       cs.cx=GetSystemMetrics(SM_CXSCREEN/2); 
       cs.cy=GetSystemMetrics(SM_CYSCREEN/2); 

        return CMDIFramewnd ::PreCreateWindow(cs); 
     
      } 

  11.  ��ν����ھ�����ʾ? 
        Easy, Call Function CWnd:: Center Windows 
         
         Example(1):  Center Window( );  //Relative to it's parent 
          // Relative to Screen 
         Example(2):  Center Window(CWnd:: GetDesktopWindow( )); 
          //Relative to Application's MainWindow 
         AfxGetMainWnd( ) -> Center Window( ); 
   
   12. ����ô��ں� MDI����һ��������󻯺���С��? 
       ��˵���ڡ� 
       �� InitStance �������趨 m_nCmdShow�� ȡֵ. 
         m_nCmdShow=SW_SHOWMAXMIZED ;  //��� 
         m_nCmdShow=SW_SHOWMINMIZED ;  //���� 
         m_nCmdShow=SW_SHOWNORMAL   ;   //��ʽ 

        MDI����: 
          ����Ǵ����µ�Ӧ�ó���,������ MFC AppWizard ��Advanced ��ť���� 
           MDI�Ӵ��ڷ�����м����󻯻���С��; ���������� MDI Window ��  
            PreCreateWindow��������WS_MAXMIZE or WS_MINMIZE; 
         ���� CMDIChildWnd ����,���� OnInitialUpdate�����е� CWnd::Show 
        Window��ָ�� MDI Child Window�� ��� 

   13. ���ʹ���򱣳ּ�С״̬? 
       ������˼�� ���� 
        ��ô��: �ڻָ��������Сʱ�� Windows�ᷢ��WM_QUERY-OPEN��Ϣ�� 
        �� ClassWizard���ó�Ա���� OnQueryOpen() ,add following code: 
            Bool CMainFrame:: OnQueryOpen( ) 
              {  
                 Return false; 
              } 

   14. ������ƴ��ڵ� ��С? 
      Ҳ���� FixedDialog��ʽ��  Windows ���� WM_GETMAXMININFO��Ϣ������, 
    ��Ӧ��,�� OnGetMAXMININFO ��д����: 

   15.  ���ʹ���ڲ��ɼ� 
    �ܼ�,��SW_HIDE ���ش��ڣ����Խ�� FindWindow,ShowWindow ����. 
  
   16. ���ʹ����ʼ������ǰ��? 
      ����;��. 
       BringWindowToTop(Handle); 
       SetWindowPos����ָ�����ڵ� ����,��WS_EX_TOPMOST��չ���ڵ� ���

        
       Example: 
         void  ToggleTopMost( CWnd *pWnd) 
          { 
             ASSERT_VALID(pWnd); 
             pWnd ->SetWindowPos(pWnd-> GetStyle( ) &WS_EX_TOPMOST)? 
              &wndNoTopMOST: &wndTopMost,0,0,0,0,SSP_NOSIZE|WSP_NOMOVE); 
           } 


    ����... ���кöණ�� 


    

-- 
�� �޸�:��knofler � Oct 19 22:23:17 �޸ı��ġ�[FROM: concerto.ncic.a] 
�� ��Դ:��BBS ˮľ�廪վ bbs.net.tsinghua.edu.cn��[FROM: concerto.ncic.a] 

                         [������ҳ] [����������] [ȫ��������]

--
m;37m�� ��Դ:���Ͻ�ɺ� bbs.njupt.edu.cn��[FROM: pc05.info.njupt]m

--
�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: a507yjh.nju.edu]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads