ウィンドウクラス名を変更する例 |
BOOL CJPEclipsePluginApp::InitInstance(){ ・・・ WNDCLASS wc; wc.style = CS_DBLCLKS; wc.lpfnWndProc = DefDlgProc; wc.cbClsExtra = 0; wc.cbWndExtra = DLGWINDOWEXTRA; wc.hInstance = m_hInstance; wc.hIcon = NULL; wc.hCursor = LoadCursor( IDC_ARROW ); wc.hbrBackground = NULL; wc.lpszMenuName = NULL; wc.lpszClassName = _T("ダイアログに設定したクラス名を記述"); if( !AfxRegisterClass( &wc ) ){ return FALSE; } ・・・ } |