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

C / C++ / MFC

 
GeneralRe: There has a MFC Ctrl like Dreamweaver 's panel ctrl? Pin
Hamid_RT27-Feb-07 1:02
Hamid_RT27-Feb-07 1:02 
GeneralRe: There has a MFC Ctrl like Dreamweaver 's panel ctrl? Pin
matakk27-Feb-07 22:57
matakk27-Feb-07 22:57 
Questionhai, How to find the size of folder or size of directory using MFC? Pin
CodeVarma25-Feb-07 22:06
CodeVarma25-Feb-07 22:06 
AnswerRe: hai, How to find the size of folder or size of directory using MFC? Pin
prasad_som25-Feb-07 23:29
prasad_som25-Feb-07 23:29 
GeneralRe: hai, How to find the size of folder or size of directory using MFC? Pin
CodeVarma26-Feb-07 0:42
CodeVarma26-Feb-07 0:42 
AnswerRe: hai, How to find the size of folder or size of directory using MFC? Pin
prasad_som26-Feb-07 0:46
prasad_som26-Feb-07 0:46 
AnswerRe: hai, How to find the size of folder or size of directory using MFC? Pin
Hamid_RT26-Feb-07 7:28
Hamid_RT26-Feb-07 7:28 
Questionhow to upate one child dialog from other child dilaog? Pin
amitmistry_petlad 25-Feb-07 22:03
amitmistry_petlad 25-Feb-07 22:03 
i need to update one child dialog from other for that i did the following things

when i click on the list view item.
LRESULT CALLBACK GlobaListProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
   	
	switch (message)
	{ 
	case WM_NOTIFY:
			
		if(((LPNMHDR)lParam)->code == NM_CLICK)
				{
					iSelect=SendMessage(hList,LVM_GETNEXTITEM,-1,LVNI_FOCUSED);				    
					if(iSelect==-1)
					{                      
					  break;
					}					
					
					index=iSelect;		
					ShowWindow(hWndinoutfiledir,SW_HIDE);			
					ShowWindow(hwndEncrypt,SW_HIDE);					
					//Hide File Split window.
					ShowWindow(hwndSplit,SW_HIDE);
					//Hide encoder window.			
					ShowWindow(hwndUpload,SW_HIDE);
					<code>ShowWindow(hwndTagEditorDlg ,SW_SHOW);</code>					
					//::PostMessage(hwndTagEditorDlg,IDC_HIDDEN_BTN,NULL,NULL);					
					UpdateWindow(hwndTagEditorDlg);				
				}
	
	    break;
	}
} 

now i need effect of that click event on the following call back function <code>ShowWindow(hwndTagEditorDlg ,SW_SHOW) </code> its call but its not updated the window with 
empty edittext control what should i do?

addtional i want to pass the iSelect value also for the further processing of my global array of object _ProtectSet[index] for dispaly the old values which is stored in objetc.

LRESULT CALLBACK  TagEditorProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
Utility util;
switch(message)
{
case WM_INITDIALOG:
	if(_ProtectSet[index].listviewIndex==index) 
		{
			SetDlgItemText(hDlg,IDC_EDIT_ARTIST,util.ConvertStringToWCHAR(_ProtectSet[index].artist));  
			SetDlgItemText(hDlg,IDC_EDIT_ALBUM,util.ConvertStringToWCHAR(_ProtectSet[index].album));
			SetDlgItemText(hDlg,IDC_EDIT_YEAR,util.ConvertStringToWCHAR(_ProtectSet[index].year));
			SetDlgItemText(hDlg,IDC_EDIT_COPYRIGHT,util.ConvertStringToWCHAR(_ProtectSet[index].copyright));
			SetDlgItemText(hDlg,IDC_EDIT_AUTHOR,util.ConvertStringToWCHAR(_ProtectSet[index].author));
			SetDlgItemText(hDlg,IDC_EDIT_GENRE,util.ConvertStringToWCHAR(_ProtectSet[index].genre));
			SetDlgItemText(hDlg,IDC_EDIT_DESCRIPTION,util.ConvertStringToWCHAR(_ProtectSet[index].desc));
		}
	break;

case WM_COMMAND:

switch(LOWORD(wParam))
{
	case IDC_SAVE_TAG:		
		_ResideId3TagForSelectedFile(hDlg);	
		MessageBox(hDlg,_T("Your file has been saved"),_T("encoder"),0);		
		break;

	case IDC_HIDDEN_BTN:
		MessageBox(0,_T("HAY"),_T("HI"), 0);
		::PostMessage(hDlg,WM_INITDIALOG,0,0);
		break;
  } 

 break;
}
return FALSE;
}

what should I do ?


Amit
AnswerRe: how to upate one child dialog from other child dilaog? Pin
jhwurmbach25-Feb-07 22:15
jhwurmbach25-Feb-07 22:15 
GeneralRe: how to upate one child dialog from other child dilaog? Pin
amitmistry_petlad 25-Feb-07 22:47
amitmistry_petlad 25-Feb-07 22:47 
GeneralRe: how to upate one child dialog from other child dilaog? Pin
jhwurmbach25-Feb-07 23:00
jhwurmbach25-Feb-07 23:00 
GeneralRe: how to upate one child dialog from other child dilaog? Pin
amitmistry_petlad 25-Feb-07 23:13
amitmistry_petlad 25-Feb-07 23:13 
GeneralRe: how to upate one child dialog from other child dilaog? Pin
jhwurmbach25-Feb-07 23:33
jhwurmbach25-Feb-07 23:33 
QuestionDeploying VS2005 applications without administrator rights Pin
Cedric Moonen25-Feb-07 22:02
Cedric Moonen25-Feb-07 22:02 
AnswerRe: Deploying VS2005 applications without administrator rights Pin
sps-itsec4625-Feb-07 23:41
sps-itsec4625-Feb-07 23:41 
AnswerRe: Deploying VS2005 applications without administrator rights Pin
Michael Dunn26-Feb-07 10:28
sitebuilderMichael Dunn26-Feb-07 10:28 
GeneralRe: Deploying VS2005 applications without administrator rights Pin
sps-itsec4627-Feb-07 2:37
sps-itsec4627-Feb-07 2:37 
QuestionHow can I load French Stringtable Pin
dungpapai25-Feb-07 21:58
dungpapai25-Feb-07 21:58 
AnswerWhat is the big deal? Pin
Rajesh R Subramanian25-Feb-07 22:29
professionalRajesh R Subramanian25-Feb-07 22:29 
AnswerRe: How can I load French Stringtable Pin
KaЯl27-Feb-07 4:05
KaЯl27-Feb-07 4:05 
Questionassignment operator for CDBVariant Pin
prithaa25-Feb-07 21:25
prithaa25-Feb-07 21:25 
AnswerRe: assignment operator for CDBVariant Pin
Try25-Feb-07 21:31
Try25-Feb-07 21:31 
AnswerRe: assignment operator for CDBVariant Pin
prasad_som25-Feb-07 21:38
prasad_som25-Feb-07 21:38 
GeneralRe: assignment operator for CDBVariant Pin
prithaa25-Feb-07 22:03
prithaa25-Feb-07 22:03 
AnswerRe: assignment operator for CDBVariant Pin
prasad_som25-Feb-07 22:10
prasad_som25-Feb-07 22:10 

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.