Click here to Skip to main content
15,891,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to free memory, used by resources Pin
Kiomuto31-Oct-06 0:06
Kiomuto31-Oct-06 0:06 
AnswerRe: How to free memory, used by resources Pin
led mike31-Oct-06 4:52
led mike31-Oct-06 4:52 
AnswerRe: How to free memory, used by resources Pin
Kiomuto31-Oct-06 5:39
Kiomuto31-Oct-06 5:39 
QuestionCMDIChildWnd Pin
baerten30-Oct-06 23:36
baerten30-Oct-06 23:36 
AnswerRe: CMDIChildWnd Pin
Mark Salsbery31-Oct-06 4:37
Mark Salsbery31-Oct-06 4:37 
GeneralRe: CMDIChildWnd Pin
baerten31-Oct-06 4:53
baerten31-Oct-06 4:53 
GeneralRe: CMDIChildWnd Pin
Mark Salsbery31-Oct-06 5:20
Mark Salsbery31-Oct-06 5:20 
GeneralRe: CMDIChildWnd Pin
baerten1-Nov-06 23:12
baerten1-Nov-06 23:12 
Ok, it seems to work, big thanks Smile | :)

But there is still a problem, if i click on the Wordkspace, the modeless-Dialog disappears and
the Frame rests open.
Because Dialogs are another windows, which are displayed as a new element on the Windows TaskBar.
is it possible to change it?

If not i must use the Doc/View Architecture.
But there, i don't know a possibility to open a Frame ( with View ) with parameters
For example to set an initial height&width, because i open the frames with the Template :

CString Cur;
CDocTemplate *Selected;
POSITION pos = theApp.GetFirstDocTemplatePosition();
while(pos != NULL) {
Selected = (CDocTemplate*)theApp.GetNextDocTemplate(pos);
ASSERT(Selected != NULL);
ASSERT(Selected->IsKindOf(RUNTIME_CLASS(CDocTemplate)));

Selected->GetDocString(Cur,CDocTemplate::docName);
if(Name == Cur) {
Selected->OpenDocumentFile(NULL);
}
}

Or is my procedure completly wrong and i can open the View in the Frame like your example with the Frame and the dialog

So that i create myself a Frame and in the Create-Handler i associate myself the view to this frame
so that i don't need the templates ( Because if i have 50 windows i need to add 50 templates at the beginning of the application )
GeneralRe: CMDIChildWnd Pin
Mark Salsbery2-Nov-06 7:39
Mark Salsbery2-Nov-06 7:39 
GeneralRe: CMDIChildWnd [modified] Pin
baerten2-Nov-06 22:48
baerten2-Nov-06 22:48 
QuestionHelp and Hints needed / Motion Tracking Pin
luedfe30-Oct-06 23:34
luedfe30-Oct-06 23:34 
AnswerRe: Help and Hints needed / Motion Tracking Pin
Waldermort30-Oct-06 23:53
Waldermort30-Oct-06 23:53 
GeneralRe: Help and Hints needed / Motion Tracking Pin
luedfe31-Oct-06 2:10
luedfe31-Oct-06 2:10 
GeneralRe: Help and Hints needed / Motion Tracking Pin
Waldermort31-Oct-06 3:40
Waldermort31-Oct-06 3:40 
Questionhelp1 Pin
Kiethnt30-Oct-06 23:31
Kiethnt30-Oct-06 23:31 
Answera little off topic, but... Pin
toxcct30-Oct-06 23:41
toxcct30-Oct-06 23:41 
AnswerRe: help1 Pin
Hamid_RT31-Oct-06 0:20
Hamid_RT31-Oct-06 0:20 
JokeRe: help1 Pin
toxcct31-Oct-06 0:21
toxcct31-Oct-06 0:21 
GeneralRe: help1 Pin
Hamid_RT31-Oct-06 0:55
Hamid_RT31-Oct-06 0:55 
AnswerRe: help1 Pin
ThatsAlok31-Oct-06 5:00
ThatsAlok31-Oct-06 5:00 
QuestionHelp Pin
Kiethnt30-Oct-06 23:27
Kiethnt30-Oct-06 23:27 
AnswerRe: Help Pin
Waldermort30-Oct-06 23:50
Waldermort30-Oct-06 23:50 
GeneralRe: Help Pin
Hamid_RT31-Oct-06 0:31
Hamid_RT31-Oct-06 0:31 
GeneralRe: Help Pin
ThatsAlok31-Oct-06 4:32
ThatsAlok31-Oct-06 4:32 
AnswerRe: Help Pin
Hamid_RT31-Oct-06 0:30
Hamid_RT31-Oct-06 0:30 

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.