摘要:
MSDN=>Platform SDK Document=>User Interface Services=>Windows Common Controls这里可以查看平常不常用的一些控件,如Toolbar Controls、ToolTip Controls等。 阅读全文
posted @ 2009-07-27 16:07
Fan Zhang
阅读(312)
评论(0)
推荐(0)
摘要:
CommandBar是可以移动的ToolBarRebar不仅可以有按钮,还可以加入其它控件,如ComboBox等。是加强的ToolBar 阅读全文
posted @ 2009-07-27 15:42
Fan Zhang
阅读(328)
评论(0)
推荐(0)
摘要:
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Lib 阅读全文
posted @ 2009-07-27 15:32
Fan Zhang
阅读(491)
评论(0)
推荐(0)
摘要:
WTL提供一个机制,允许对同一个消息或命令,派发至不同的类。 BEGIN_MSG_MAP( CBase )//默认处理0号消息映射 MESSAGE_HANDLER( WM_DESTROY, OnDestroy1 ) ALT_MSG_MAP( 100 )//处理来自100的消息映射 MESSAGE_HANDLER( WM_DESTROY, OnDestroy2 ) END_MSG_MAP()在BEG... 阅读全文
posted @ 2009-07-27 14:51
Fan Zhang
阅读(204)
评论(0)
推荐(0)
摘要:
CButton bOk = GetDlgItem(IDOK)); CButton bCancel = GetDlgItem(IDCANCEL)); 阅读全文
posted @ 2009-07-27 12:57
Fan Zhang
阅读(251)
评论(0)
推荐(0)
摘要:
MessageFilter可以在处理消息之前,提前将消息修改一下。其中CMessageFilter封装了MessageFilterclass CMessageFilter {public: virtual BOOL PreTranslateMessage(MSG* pMsg) = 0;};CMainFrame之所以能响应PreTranslateMessage,是因为CMainFrame继承了CMe... 阅读全文
posted @ 2009-07-27 11:24
Fan Zhang
阅读(541)
评论(0)
推荐(0)
摘要:
怎么让View来响应菜单事件? 在WTL里面,CMainFrame的消息循环是这样的: 程序代码BEGIN_MSG_MAP(CMainFrame) MESSAGE_HANDLER(WM_Create, OnCreate) CHAIN_MSG_MAP(CUpdateUI<CMainFrame>) CHAIN_MSG_MAP(CFrameWindowImpl<CMainFrame&g... 阅读全文
posted @ 2009-07-27 10:07
Fan Zhang
阅读(553)
评论(0)
推荐(0)

浙公网安备 33010602011771号