|
这样说可能不够清楚,贴出部分代码
WNDCLASS wndclass;
wndclass.style = CS_DBLCLKS|CS_HREDRAW|CS_VREDRAW ;
wndclass.lpfnWndProc = AfxWndProc;
wndclass.hInstance = hInst ;
wndclass.hIcon = NULL;
wndclass.hbrBackground = NULL;
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = _T("today");
wndclass.cbWndExtra = 0;
wndclass.cbClsExtra = 0;
if ( RegisterClass( &wndclass ) == 0 )
{
return FALSE ;
}
if ( CWnd::Create( _T("today") , NULL , dwFixStyle , rc , parent , nID ) )
{
return TRUE;
} |
|