Functions
Create
virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle = WS_OVERLAPPEDWINDOW, const RECT& rect = rectDefault, CWnd* pParentWnd = NULL, LPCTSTR lpszMenuName = NULL, DWORD dwExStyle = 0, CCreateContext* pContext = NULL );
Example :
MyFrame() { Create(NULL, "MENU", WS_OVERLAPPEDWINDOW | WS_VISIBLE, rectDefault, NULL, MAKEINTRESOURCE(IDR_MENU1)); }
dwStyle : windows style
* 希望視窗有捲軸效果: WS_VSCROLL
沒有留言:
張貼留言