Click here to Skip to main content
16,007,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionViewing a ppm file Pin
softwareSurfer19-Mar-07 18:47
softwareSurfer19-Mar-07 18:47 
QuestionCAsyncSocket::OnReceive never called Pin
csmithmaui19-Mar-07 18:26
csmithmaui19-Mar-07 18:26 
AnswerRe: CAsyncSocket::OnReceive never called Pin
Mark Salsbery20-Mar-07 9:57
Mark Salsbery20-Mar-07 9:57 
QuestionTab control Pin
janpoo19-Mar-07 18:22
janpoo19-Mar-07 18:22 
AnswerRe: Tab control Pin
cp987619-Mar-07 20:22
cp987619-Mar-07 20:22 
Questionflickering problem when resize the application. Pin
amitmistry_petlad 19-Mar-07 17:54
amitmistry_petlad 19-Mar-07 17:54 
AnswerRe: flickering problem when resize the application. Pin
prasad_som19-Mar-07 18:22
prasad_som19-Mar-07 18:22 
GeneralRe: flickering problem when resize the application. Pin
amitmistry_petlad 19-Mar-07 18:42
amitmistry_petlad 19-Mar-07 18:42 
prasad_som wrote:
You have to write code your self for that. This[^] article by Paolo Messina should give you some idea.


By the help of this example I can reach here bu the problem is below.
I explaine you,
for create the frame window and put some dialogs inside in the following way.

hInst = hInstance; // Store instance handle in our global variable
	//Create parent window		
			
	//hWndStatic=CreateWindow(szWindowClass, szTitle, WS_SYSMENU | WS_MINIMIZEBOX, CW_USEDEFAULT,CW_USEDEFAULT,780,730,NULL,NULL,hInstance, NULL);
	<big>hWndStatic</big>=CreateWindow(szWindowClass, szTitle, WS_SYSMENU | WS_MINIMIZEBOX | WS_THICKFRAME , CW_USEDEFAULT,CW_USEDEFAULT,1090,710,NULL,NULL,hInstance,NULL);
				
	//Create Navigator window
	<big>hWndNavigator</big> = CreateDialog(hInst,MAKEINTRESOURCE(IDD_DIALOG_NAVIGATORORI),hWndStatic,(DLGPROC)NavigatorProc);
	//Create Header window
	<big>hWndHeader</big>    = CreateDialog(hInst,MAKEINTRESOURCE(IDD_DIALOG_HEADER),hWndStatic,(DLGPROC)HeaderProc);
	//Create Footer window
	hWndFooter    = CreateDialog(hInst,MAKEINTRESOURCE(IDD_DIALOG_FOOTER),hWndStatic,(DLGPROC)FooterProc);
	//Create Global List window
	<big>hWndListview</big>  = CreateDialog(hInst,MAKEINTRESOURCE(IDD_DIALOG_LISTVIEW),hWndStatic,(DLGPROC)GlobaListProc);	
	
	//hwndEncrypt = CreateDialog(hInst,MAKEINTRESOURCE(IDD_PROTECTFILES),hWndStatic,(DLGPROC)EncodeProc);
	
	if (!hWndStatic)
	{
	  return FALSE;
	}
	
	//Show parent window
	ShowWindow(hWndStatic, SW_SHOW);
	//Show Navigator window
	ShowWindow(hWndNavigator,SW_SHOW);
	//Show Header window
	ShowWindow(hWndHeader,SW_SHOW);
	//Show footer window
	ShowWindow(hWndFooter,SW_SHOW);	
	ShowWindow(hWndListview,SW_SHOW);		

	//ShowWindow(hwndEncrypt,SW_SHOW);		
		/*ShowWindow(hWndinoutfiledir,SW_SHOW);
		ShowWindow(hWndinoutfiledir,SW_HIDE);*/
		//Send WM_PAINT message to WndProc.
	UpdateWindow(hWndStatic);	
	//CenterWindow(hWndStatic);

	//::PostMessage( hwndTagEditorDlg, WM_COMMAND, MAKELONG( IDC_HIDDEN_BTN, BN_CLICKED ),index);
	Window_Center(hWndStatic);

///// add by amit  for resizing the application

	BEGIN_SIZINGRULES(m_grip, hWndStatic)    //for header window
		
			  ADDRULE(m_grip<big>,hWndListview</big>, RX)
			  ADDRULE(m_grip, <big>hWndHeader</big> , RX)			   
			  ADDRULE(m_grip,<big>hWndNavigator</big>, RY)

	END_SIZINGRULES

    return TRUE;

upon your given link I have already used that one and made the above
BEGIN_SIZINGRULES from that code, but Look at that very carefully , I have made it for windows not for control inside that window, I am inprocess of that but how can I find the clue that windows and controlId.
in the same code. if you might checked Mr.Paolo Messina example.










"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India

GeneralRe: flickering problem when resize the application. Pin
prasad_som19-Mar-07 19:07
prasad_som19-Mar-07 19:07 
QuestionHow can I edit bitmap Image? Pin
Md. Mazharul Islam Khan19-Mar-07 17:31
Md. Mazharul Islam Khan19-Mar-07 17:31 
AnswerRe: How can I edit bitmap Image? Pin
Hamid_RT20-Mar-07 3:08
Hamid_RT20-Mar-07 3:08 
QuestionSHBrowseForFolder not working in wince 5.0(x86) processor Pin
joemittu19-Mar-07 17:12
joemittu19-Mar-07 17:12 
Questionsome problems about listbox control Pin
Chen-XuNuo19-Mar-07 16:41
Chen-XuNuo19-Mar-07 16:41 
AnswerRe: some problems about listbox control Pin
Chen-XuNuo19-Mar-07 16:46
Chen-XuNuo19-Mar-07 16:46 
AnswerRe: some problems about listbox control Pin
prasad_som19-Mar-07 18:29
prasad_som19-Mar-07 18:29 
GeneralRe: some problems about listbox control Pin
Chen-XuNuo19-Mar-07 20:31
Chen-XuNuo19-Mar-07 20:31 
AnswerRe: some problems about listbox control Pin
prasad_som19-Mar-07 20:51
prasad_som19-Mar-07 20:51 
GeneralRe: some problems about listbox control Pin
Chen-XuNuo20-Mar-07 2:16
Chen-XuNuo20-Mar-07 2:16 
AnswerRe: some problems about listbox control Pin
prasad_som20-Mar-07 2:21
prasad_som20-Mar-07 2:21 
GeneralRe: some problems about listbox control Pin
Chen-XuNuo20-Mar-07 3:30
Chen-XuNuo20-Mar-07 3:30 
AnswerRe: some problems about listbox control Pin
prasad_som20-Mar-07 4:02
prasad_som20-Mar-07 4:02 
AnswerRe: some problems about listbox control Pin
Chen-XuNuo19-Mar-07 16:46
Chen-XuNuo19-Mar-07 16:46 
AnswerRe: some problems about listbox control Pin
Parthi_Appu19-Mar-07 21:10
Parthi_Appu19-Mar-07 21:10 
GeneralRe: some problems about listbox control Pin
Chen-XuNuo20-Mar-07 2:27
Chen-XuNuo20-Mar-07 2:27 
GeneralRe: some problems about listbox control Pin
Parthi_Appu20-Mar-07 2:40
Parthi_Appu20-Mar-07 2:40 

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.