摘要:
IntroductionIt is bit tricky to use MSFlexGrid Control in ATL projects (I struggled lot with MSDN and net) because: MSFlexGrid Control is a Visual Basic control MSFlexGrid Control requires runtime control license. To check the problem you can do the following: Create ATL Server Dll A... 阅读全文
摘要:
BringWindowToTopSetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE)BOOL SetForegroundWindow( HWND hWnd // handle to window ); 阅读全文
摘要:
第一讲 用Create()方法新建一个窗体应用程序 一般来讲,大多数Windows应用程序的界面都是由一个或数个窗体构成。而VC++中提供了丰富的类库,用于创建Windows窗体应用程序。 我们一般可以通过CFreameWnd类中的Create()方法来创建一个窗体,Create()函数的定义如下:BOOL Create(LPCTSTR lpszClassName,LPCTSTR lpszWindowName,DWORD dwStyle = WS_OVERLAPPEDWINDOW,const RECT& rect = rectDefault,CWnd* pParentWnd = NUL 阅读全文