|
-
May 20th, 1999, 10:47 AM
#1
CEdit
CRect m_size(100,100,500,500);
CEdit attempt;
CWnd * temp = (((CDialogApp*)AfxGetApp())->GetMainWindow());
temp->CalcWindowRect(m_size);
attempt.Create(ES_LEFT, m_size, ((CDialogApp*)AfxGetApp())->GetMainWindow(),6001);
attempt.ShowWindow(SW_SHOWNORMAL);
I cannot simply create a CEdit box on a simple dialog based project. What am i doing wrong. The pointers and everything look good but nothing seems to show up. thanks for any help
-
May 20th, 1999, 11:21 AM
#2
Re: CEdit
I'm not sure but maybe you have forgotten the window attributes like WS_VISIBLE.
-
May 20th, 1999, 11:29 AM
#3
Re: CEdit
Doesn't work. Tried just about every window attrib. possiable. the wierd thing is that in the debugger the one i make static has two Whnd one with Whnd and one [Whnd] i think i'm putting the one i create dynamically in the wrong place? But since i'm using a dlg project that should not matter right? thanks in advance
-
May 20th, 1999, 02:11 PM
#4
Re: CEdit
When I put an edit box in a dialog, I always use the ResourceView editor and put the control in the dialog resource. I seldom have a need to call Create directly.
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
|