|
-
October 7th, 1999, 02:02 PM
#1
Problems with Dynamic Button
Hi,
I cannot get my button to Display. I am creating the Button in the OnInitialUpdate funtion of a CFormView Class. I looked through code and I cannot get this button to display. I get a nozero return value, so I know it is created correctly. any ideas??
//in .h file
CButton *ctrlCancelButton;
//in .cpp file
ctrlCancelBtn = new CButton;
RECT rect;
CString msg;
BOOL b;
rect.left = 210;
rect.top = 14;
rect.right = 60;
rect.bottom = 15;
b = ctrlCancelBtn->Create("Cancel", WS_CHILD |
WS_VISIBLE , rect,this,
ID_FIND);
msg.Format("Value of Creation %d", b);
AfxMessageBox(msg);
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
|