|
-
April 23rd, 1999, 05:22 AM
#1
Please Help!!! CWnd::Create()
I'm using a CWnd-derived class for the first time, I'va always worked with CFrameWnd-Derived classes... I'm getting an Access Violation error with the following code:
Create(NULL,"Virtual Desktop",WS_FLAGS,CRect(0,0,640,480),NULL,0,NULL);
Where WS_FLAGS = WS_VISIBLE|WS_MAXIMIZE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS
I'm trying to create a full-screen main window... What window styles should I be using? Is the problem somewhere else?
Thanks,
Hardeep
-
April 23rd, 1999, 06:21 AM
#2
Re: Please Help!!! CWnd::Create()
Hi Hardeep,
first of all you should register a window class with AfxRegisterWndClass. The result can be used as the class name (first parameter) in Create.
Martin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|