我在一个Dialog里面加了虚拟函数BOOL CTestDlg::PreCreateWindow(CREATESTRUCT& cs) ,但是我在这个函数里面设置了BreakPoint。结果却发现这个虚拟函数根本就没有被执行。
从MSN里面可以看出它只适用于framework。The following come from MSN.
ResCalled by the framework before the creation of the Windows window attached to this CWnd object.
现在提问,我怎样才能改变Dialog的窗口类。谢谢
从MSN里面可以看出它只适用于framework。The following come from MSN.
ResCalled by the framework before the creation of the Windows window attached to this CWnd object.
现在提问,我怎样才能改变Dialog的窗口类。谢谢
改成什么样的类型?问题得说清楚。
ResIf your application must set the cursor while it is in a window, make sure the class cursor for the specified window's class is set to NULL. If the class cursor is not NULL, the system restores the class cursor each time the mouse is moved.
不然得话一移动光标就会恢复原样。所以我必须修改窗口类,让类光标为NULL
SetClassLong( m_hWnd, GCL_HCURSOR, hCursor );
签名:jmcooler
SetClassLong( m_hWnd, GCL_HCURSOR, hCursor );
签名:jmcooler