1 2 3 4 5 6 7 8 9 10 11 12
|
bool CSSaverWndGL::Init(DWORD dwExStyle, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
LPCTSTR lpszClassName= AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW,::LoadCursor(AfxGetResourceHandle(), MAKEINTRESOURCE(IDC_NULLCURSOR)));
SCREEN_SIZE_W=rect.right - rect.left;
SCREEN_SIZE_H=rect.bottom - rect.top;
...
bool create=CreateEx(dwExStyle, lpszClassName, _T(""), dwStyle, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, pParentWnd->GetSafeHwnd(), NULL, NULL );
...
return create;
} |
Partager