Click here to Skip to main content
15,913,486 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCD - DVD Writing Pin
ragavan11-Jul-07 18:21
ragavan11-Jul-07 18:21 
AnswerRe: CD - DVD Writing Pin
David Crow12-Jul-07 2:42
David Crow12-Jul-07 2:42 
Questiondocument view and dialog Pin
saisp11-Jul-07 17:49
saisp11-Jul-07 17:49 
AnswerRe: document view and dialog Pin
DevMentor.org11-Jul-07 18:51
DevMentor.org11-Jul-07 18:51 
GeneralRe: document view and dialog Pin
saisp11-Jul-07 19:07
saisp11-Jul-07 19:07 
GeneralRe: document view and dialog Pin
DevMentor.org11-Jul-07 23:29
DevMentor.org11-Jul-07 23:29 
GeneralRe: document view and dialog Pin
saisp11-Jul-07 23:43
saisp11-Jul-07 23:43 
GeneralRe: document view and dialog Pin
DevMentor.org12-Jul-07 0:55
DevMentor.org12-Jul-07 0:55 
It going to take some work, but for a splitter window you're going to have to create an instance of the CSplitterWnd, you can pass a window pointer from your dialog box to the splitter window after you create it from the dialog box and use that as a way to communicate events or pass data, or create custom window message and use that between the window to send messages... there are so many ways to do this, find the easiest one that works for you.

In your dialog box add a method that will create the new window and initialize it. Save it to a member pointer variable of type CWnd* use type casting were required to get the actual splitter window, or just declare a pointer to the final window you will be working with.

Check for this pointer to be null before creating the window, then you will need to use CWnd::GetSafeHwnd API to make sure there is actually a window attached to the window pointer!

You don't want to keep creating a window if one already exist, if one exist you simply want to set the focus to it when the User clicks on the dialog button again.

Make sure the destroy the window and free the pointer when you're done with it....while t he app is running you can simple show and hide the window to save you from creating and deleting a window and losing data then needs to be persistent.

You can start off by looking in the MFC section of this site on splitter windows, also you should create a simple mfc test app with a splitter window and understand how the wizard is generating the view and do the same thing or simply grab the class after tweaking it in the test app and plop it into your dialog app project and create an instance of it yourself.

IF you know how to create a modeless dialog box then you have all the know how of creating a simple window my friend, same concept.

That's all the help i can give you, I am not going to provide any code, you will just have to do you due diligence with the particulars!Big Grin | :-D

Yours Truly, The One and Only!

GeneralRe: document view and dialog Pin
DevMentor.org12-Jul-07 1:02
DevMentor.org12-Jul-07 1:02 
GeneralRe: document view and dialog Pin
saisp12-Jul-07 1:15
saisp12-Jul-07 1:15 
GeneralRe: document view and dialog Pin
DevMentor.org12-Jul-07 2:23
DevMentor.org12-Jul-07 2:23 
GeneralRe: document view and dialog Pin
saisp12-Jul-07 2:34
saisp12-Jul-07 2:34 
GeneralRe: document view and dialog Pin
DevMentor.org12-Jul-07 9:32
DevMentor.org12-Jul-07 9:32 
QuestionThe ActiveX Control embeded in Web Pin
eraccn11-Jul-07 16:08
eraccn11-Jul-07 16:08 
AnswerRe: The ActiveX Control embeded in Web Pin
LoveCPlusplus18-Jul-07 0:39
LoveCPlusplus18-Jul-07 0:39 
GeneralRe: The ActiveX Control embeded in Web Pin
eraccn18-Jul-07 3:33
eraccn18-Jul-07 3:33 
QuestionCheckDlgButton() not unchecking sometimes Pin
cfo5ter11-Jul-07 15:31
cfo5ter11-Jul-07 15:31 
AnswerRe: CheckDlgButton() not unchecking sometimes Pin
Mark Salsbery11-Jul-07 16:53
Mark Salsbery11-Jul-07 16:53 
AnswerRe: CheckDlgButton() not unchecking sometimes Pin
krmed12-Jul-07 2:21
krmed12-Jul-07 2:21 
QuestionBind Error with IIS Pin
eraccn11-Jul-07 15:03
eraccn11-Jul-07 15:03 
QuestionC2678: Problem & Solution Pin
John R. Shaw11-Jul-07 13:06
John R. Shaw11-Jul-07 13:06 
AnswerRe: C2678: Problem & Solution Pin
Stephen Hewitt11-Jul-07 13:40
Stephen Hewitt11-Jul-07 13:40 
GeneralRe: C2678: Problem & Solution Pin
John R. Shaw11-Jul-07 14:07
John R. Shaw11-Jul-07 14:07 
GeneralRe: C2678: Problem & Solution Pin
Stephen Hewitt11-Jul-07 14:36
Stephen Hewitt11-Jul-07 14:36 
GeneralRe: C2678: Problem & Solution Pin
John R. Shaw11-Jul-07 15:12
John R. Shaw11-Jul-07 15:12 

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

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