🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1181

vc���ָ��68ƪ(2) (ת��)

#1181
From: �ϵ�
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]
Technical Details
Message-ID: <3OAiN5$t51@bbs.nju.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: fc86e,5595d0106f377348,start
X-Google-Attributes: gidfc86e,public
From: mendy.bbs@bbs.nju.edu.cn (�ϵ�)
Subject: vc���ָ��68ƪ(2) (ת��) 
Date: 1998/04/19
Message-ID: <3OAiN5$t51@bbs.nju.edu.cn>
X-Deja-AN: 345932432
X-Filename: Programming/M.893022293.A
Organization: nju_bbs
Newsgroups: cn.bbs.comp.program