![]() |
No Resource Buttons on Dialog Based Pane? |
Post Reply ![]() |
Author | |
kent_t ![]() Groupie ![]() Joined: 15 July 2008 Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() Posted: 25 September 2008 at 5:15pm |
Okay, frustration is now setting in.
Based upon the Docking Pane examples and posts in this forum, I have come up with the code below. I’ve left out the hundreds of lines of code that have been written and erased. I’m trying to use a CDialog as a pane. I have placed normal Windows command buttons and static labels on this borderless dialog with the windows resource editor. The code compiles and runs, but I get a BLANK pane. No buttons. Frankly, I don’t know what the blank thing is. The constructor does run for my dialog.
I've also tried "newing" the dialog and that also does not work. I've tried putting the pointer in global scope, etc., etc. If I have to hand-create the resources in code and add them to the dialog in code I will be very disappointed. (That's an understatement.) Smucker has already said Dialogs do not really work. I was hoping otherwise. Please tell me now if I am wasting my time with dialogs. I want to use dialogs so I can easily change the resources through the VC resource editor, and not have to hand code adding buttons and such. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Obviously you need Put PaneDlg PDLG; line to members of CMainFrame.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |