Click here to Skip to main content
15,914,398 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionC++ headers help.. Pin
Prashanth KP5-Apr-07 19:51
Prashanth KP5-Apr-07 19:51 
AnswerRe: C++ headers help.. Pin
prasad_som5-Apr-07 22:23
prasad_som5-Apr-07 22:23 
Questionscreen capturing Pin
khema5-Apr-07 19:12
khema5-Apr-07 19:12 
AnswerRe: screen capturing Pin
Hamid_RT5-Apr-07 19:29
Hamid_RT5-Apr-07 19:29 
AnswerRe: screen capturing Pin
Naveen5-Apr-07 19:33
Naveen5-Apr-07 19:33 
AnswerRe: screen capturing Pin
Don Box5-Apr-07 19:37
Don Box5-Apr-07 19:37 
AnswerRe: screen capturing Pin
ThatsAlok23-Apr-07 0:09
ThatsAlok23-Apr-07 0:09 
QuestionMDI maximized child bug Pin
hsuch5-Apr-07 19:03
hsuch5-Apr-07 19:03 
Hi all,
It is very common to create a mdi child in a initially maximized state in some cases. I set SW_MAXIMIZE style in the MDICREATESTRUCT structure then send a message to mdi client window. After that, I saw twin sizing boxes on the top-right corner of my frame window (a pair of [Min][Max][Close] tri-buttons). If I restore the child window, the child got one and there was still one remaining on the corner. I was using Win32 SDK, not MFC. The code I used to create the child is like this:
HWND child_createWnd(HWND hwndClient, int x, int y, int w, int h, TCHAR szCaption[], TCHAR szFilename[])
{
	HWND hwndChild ;
	MDICREATESTRUCT mdicreate ;

	if(!childClass) childClass = zw_child_registerClass();

	mdicreate.szClass = szChildClass ;
	mdicreate.szTitle = szCaption ;
	mdicreate.hOwner  = GetModuleHandle(0) ;
	mdicreate.x       = CW_USEDEFAULT ;
	mdicreate.y       = CW_USEDEFAULT ;
	mdicreate.cx      = CW_USEDEFAULT ;
	mdicreate.cy      = CW_USEDEFAULT ;
	mdicreate.style   = WS_VSCROLL | WS_HSCROLL | WS_MAXIMIZE; <code>//MAXIMIZE window style</code>
	mdicreate.lParam  = (LPARAM)szFilename ;

	hwndChild = (HWND) SendMessage (hwndClient,
		WM_MDICREATE, 0,
		(LPARAM) (LPMDICREATESTRUCT) &mdicreate) ;

	return hwndChild;
}
I followed Petzold's sample code (cha18, Programming Windows 5ed.)to do this. I wander if I missed something. So I tried it on the sample code directly and add the flag to the style, but still happened.
Did anyone ever get this problem? I'm very thankful if anyone can help me.
AnswerRe: MDI maximized child bug Pin
hsuch6-Apr-07 0:27
hsuch6-Apr-07 0:27 
QuestionglBindTexture undefined identifier? Pin
dreamtwister5-Apr-07 18:09
dreamtwister5-Apr-07 18:09 
AnswerRe: glBindTexture undefined identifier? Pin
dreamtwister5-Apr-07 19:35
dreamtwister5-Apr-07 19:35 
AnswerRe: glBindTexture undefined identifier? Pin
Hamid_RT5-Apr-07 19:35
Hamid_RT5-Apr-07 19:35 
GeneralRe: glBindTexture undefined identifier? Pin
dreamtwister5-Apr-07 20:44
dreamtwister5-Apr-07 20:44 
QuestionHow to overlap a Edit control onto a List control? Pin
zouchao11125-Apr-07 16:17
zouchao11125-Apr-07 16:17 
AnswerRe: How to overlap a Edit control onto a List control? Pin
Naveen5-Apr-07 19:26
Naveen5-Apr-07 19:26 
AnswerRe: How to overlap a Edit control onto a List control? Pin
ThatsAlok23-Apr-07 0:05
ThatsAlok23-Apr-07 0:05 
QuestionSMS Text Messages Pin
Bram van Kampen5-Apr-07 13:58
Bram van Kampen5-Apr-07 13:58 
AnswerRe: SMS Text Messages Pin
ThatsAlok23-Apr-07 0:05
ThatsAlok23-Apr-07 0:05 
GeneralRe: SMS Text Messages Pin
Bram van Kampen4-May-07 14:33
Bram van Kampen4-May-07 14:33 
QuestionFunction help [modified] Pin
planetx225-Apr-07 12:47
planetx225-Apr-07 12:47 
AnswerRe: Function help Pin
Bram van Kampen5-Apr-07 14:59
Bram van Kampen5-Apr-07 14:59 
GeneralRe: Function help Pin
planetx225-Apr-07 15:16
planetx225-Apr-07 15:16 
GeneralRe: Function help Pin
Rick York5-Apr-07 15:27
mveRick York5-Apr-07 15:27 
GeneralRe: Function help Pin
Bram van Kampen5-Apr-07 15:39
Bram van Kampen5-Apr-07 15:39 
Questionfibbonacci series Pin
badamanil5-Apr-07 10:54
badamanil5-Apr-07 10:54 

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.