|
发表于 2011-3-29 09:40:00
|
显示全部楼层
Re:DXUT中按ALT键默认暂停 如果取消啊~急 在线等高手解答~
加上窗口消息回调函数
DXUTSetCallbackMsgProc(msgProc);
然后忽略系统菜单消息
- LRESULT CALLBACK msgProc( HWND hWnd, UINT uMsg, WPARAM wParam,
- LPARAM lParam, bool* pbNoFurtherProcessing, void* pUserContext )
- {
- if(uMsg == WM_SYSCOMMAND && wParam==SC_KEYMENU)
- {
- *pbNoFurtherProcessing = true;
- return TRUE;
- }
- return 0;
- }
复制代码
-----------------
欢迎光临我的博客 http://www.thecodeway.com
|
|