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

C / C++ / MFC

 
GeneralRe: Question about Service Utility Functions. Pin
softgrid31-Oct-06 3:20
softgrid31-Oct-06 3:20 
GeneralRe: Question about Service Utility Functions. Pin
Jonathan [Darka]31-Oct-06 22:00
professionalJonathan [Darka]31-Oct-06 22:00 
AnswerRe: Question about Service Utility Functions. Pin
Jonathan [Darka]31-Oct-06 2:10
professionalJonathan [Darka]31-Oct-06 2:10 
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 
One way is to use a modeless dialog as the client window of the MDIChild frame.

In the following example I show handler functions for WM_CREATE and WM_SIZE.
pMyDialogClient is a CMyDialogClient pointer - add this member to your CMyMDIChildWnd class.
int CMyMDIChildWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)
		return -1;

	pMyDialogClient = new CMyDialogClient();
	pMyDialogClient->Create(IDD_MYDIALOG, this);

	return 0;
}
void CMyMDIChildWnd::OnSize(UINT nType, int cx, int cy) 
{
	CMDIChildWnd::OnSize(nType, cx, cy);

	if (pMyDialogClient && IsWindow(*pMyDialogClient))
		pMyDialogClient->MoveWindow(0, 0, cx, cy);
}

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 
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 

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.