Click here to Skip to main content

C / C++ / MFC

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: Question PinmemberWes Aday6:26 29 Mar '06  
GeneralRe: Question Pinmemberbig_denny_2006:57 29 Mar '06  
GeneralRe: Question Pinmemberv2.020:16 29 Mar '06  
QuestionAbout sending mail PinmemberOliver Shikaloski3:32 29 Mar '06  
QuestionRe: About sending mail PinmemberDavidCrow4:43 29 Mar '06  
AnswerRe: About sending mail Pinmemberoliver_mak21:44 29 Mar '06  
GeneralRe: About sending mail PinmemberDavidCrow1:57 30 Mar '06  
QuestionTreeView Control Problem Pinmembergbruyneel3:00 29 Mar '06  
Hello
I have Visual studio 2005. I have created a Win32app project with a dialogbox containing a treeview control. As I would like to have the dialogbox in the client part of my window i have added the handle of WM_CREATE message in the MainWndProc like this :
 
switch (message)
{
HANDLE_MSG(hWnd, WM_CREATE, WndProc_OnCreate);

and I have wrote :
BOOL WndProc_OnCreate(HWND hwnd,LPCREATESTRUCT ct)
{
HWND g_hViewDir;
g_hViewDir = CreateDialog(hInst, MAKEINTRESOURCE(IDD_SHOWDIR), hwnd, ShowdirDlgProc);
if(g_hViewDir != NULL)
{
...
}
else
return FALSE;
return TRUE;
}

 
No compilation error. When i launch the app the dialog does not appear. I have investigate and found that the error message comes out of the CreateDialog function and says : Error 1407 : Unknown window Class Confused | :confused: ????
Could someone help.
AnswerRe: TreeView Control Problem PinmemberGavin Taylor3:27 29 Mar '06  
GeneralRe: TreeView Control Problem Pinmembergbruyneel21:23 29 Mar '06  
QuestionHow to access HKEY_CURRENT_USER from local system account? Pinmemberkhb1:54 29 Mar '06  
AnswerRe: How to access HKEY_CURRENT_USER from local system account? PinmemberJames R. Twine2:49 29 Mar '06  
GeneralRe: How to access HKEY_CURRENT_USER from local system account? Pinmemberkhb3:08 29 Mar '06  
AnswerRe: How to access HKEY_CURRENT_USER from local system account? PinmemberDavidCrow3:16 29 Mar '06  
GeneralRe: How to access HKEY_CURRENT_USER from local system account? Pinmemberkhb3:29 29 Mar '06  
QuestionCan I return an array of pointers of type unsigned char[] PinmemberLaughing Buddha1:52 29 Mar '06  
AnswerRe: Can I return an array of pointers of type unsigned char[] PinmemberStephen Hewitt1:55 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberLaughing Buddha2:09 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberStephen Hewitt2:12 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] Pinmemberv2.02:38 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberStephen Hewitt2:40 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] Pinmemberv2.02:42 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] Pinmemberv2.02:34 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberStephen Hewitt2:43 29 Mar '06  
AnswerRe: Can I return an array of pointers of type unsigned char[] PinmemberJames R. Twine2:59 29 Mar '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.5.120529.1 | Last Updated 30 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid