🚀 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 faq(10)
#1098
Author: �ϵ�
Date: Sun, 19 Apr 1998 00:00
69 lines
4086 bytes
2m������:m TMN (������)
2m��  ��:m RAD
2m��  ��:m vc faq(10)
2m����վ:m '3m�Ͻ�ɺ�m' (Wed Apr  8 08:16:52 1998) , 5mվ���ż�m

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


>  ==> youxu (����) �ᵽ: 
�����ʱ�����̼��ټ����Σ��Ա��ܹ������ټ���Ϊ��ͨ���? 

>  ==> ming (����) �ᵽ: 
����MFC�� 
���õĻ����Լ����жϵ�������TranslateAccelerator()�Ϳ��԰ɡ� 
�õĻ���������(һ�㶼��CFrameWnd�̳�)����һ����ݳ�Ա 
m_hAccelTable���ó�NULL���ԣ� 

>  ==> youxu (����) �ᵽ: 
m_hAcceltable ��TranslateAccelerator() ��û���ۡ�    

>  ==> ming (����) �ᵽ: 
TranslateAccelerator() �DZ�׼��Windows API�� 
m_hAcceltable HELP��û�г��������㿴afxwin.h��calss CFrameWnd�� 
���壬�� public �ģ�������õġ� 
����Զ���һ���µ�Accelerator Table,  
ID_NEWACCEL������û���κο�ݼ�Ķ��壬 
Ȼ���ã� 
m_hAccelTable = ::LoadAccelerators(AfxGetResourceHandle(),  
                      MAKEINTRESOURCE(ID_NEWACCEL));  

������: zhangdh (Tree), ����: Program 
   �Ҳ�һ��: 
  youxu�ij�����SDI ���� MDI��? 
  ��MDI��,ÿ��File Type�����Լ��IJ˵�,Ҳ�����Լ���Accelerator  Table, 
���Table�ľ�����MainWnd�б����. MainWnd�б����Ӧ�����������û�� 
���κ�һ���ļ�ʱ��Axccelerator Table.���Acclerator TableӦ�ô��� 
View or  Document ��. 
  ��SDI��,ming�ķ����ܿ����ǶԵ�.��Ϊ����ִ����ֻ��һ��Accelerator Table. 

������: youxu (����), ����: Program 
           ������һ����ֵ����⣬�������������ټ�� 
      ִ�� m_hAccelTable = ::LoadAcc ....  
        ���µļ��ټ�����������ˣ���ԭ�еļ��ټ�û�б�ȡ����Ȼ 
      �����ã�Ҳ����˵���������ټ�?�ϲ�Ϊһ���� 
      ��˼�������..........         

������: ming (����), ����: Program 
  �п��ܡ�youxu���������Ҳ����Ϊ�����MainFrame ���� Acclerator Table, 
  ��View�ֲ����Լ��ġ� 

������: youxu (����), ����: Program 
                  ��������!!! 
            ԭ�����е�ԭ������ zhangdh ��˵,����Ҫ���εļ��ټ�������� VIEW
��, 
        Ӧ��������: 
                    ( �� View ��ijһ��Ա������) 
     CMDIFrameWnd *pFrame = ((CMDIFrameWnd *)AfxGetApp()->m_pMainWnd); 
     CMDIChildWnd *pChildWnd = pFrame->MDIGetActive(NULL); 
     bSaveAccelTable = pChildWnd->m_hAccelTable; 
     pChildWnd->m_hAccelTable = NULL; 

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

--
m;31m�� ��Դ:���Ͻ�ɺ� 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