Click here to Skip to main content
15,921,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: paint a DC Pin
Scott H. Settlemier18-Mar-03 3:44
Scott H. Settlemier18-Mar-03 3:44 
GeneralRe: paint a DC Pin
_crs_18-Mar-03 4:22
_crs_18-Mar-03 4:22 
GeneralRe: paint a DC Pin
_Theo_18-Mar-03 4:19
_Theo_18-Mar-03 4:19 
Questionhow does my PC know what language ...? Pin
includeh1018-Mar-03 3:23
includeh1018-Mar-03 3:23 
AnswerRe: how does my PC know what language ...? Pin
AlexO18-Mar-03 3:44
AlexO18-Mar-03 3:44 
GeneralRe: how does my PC know what language ...? Pin
includeh1018-Mar-03 5:00
includeh1018-Mar-03 5:00 
GeneralRe: how does my PC know what language ...? Pin
AlexO18-Mar-03 6:09
AlexO18-Mar-03 6:09 
GeneralOnCommand() in a CDialog....... Pin
ns18-Mar-03 2:56
ns18-Mar-03 2:56 
I have the folowing and none of the HWNDs match the CWnd* pCtrl!!! Yet I only have these 4 items on the
dialog:

cmbSel, cmbFile, edit ctrl, list ctrl......WHose pointer is being returned from GetFocus()?

BOOL CAddRecord::OnCommand(WPARAM wParam, LPARAM lParam)
{

	//here push onto map the index of file, key and value
	if (LOWORD(wParam) == IDOK && lParam == 0)
	{

		CWnd* pCtrl = GetFocus();


		HWND a = pCtrl->GetSafeHwnd();

		HWND b = m_cmbSel.GetSafeHwnd();

		HWND c = m_editKeyword.GetSafeHwnd();

		HWND d = m_listAddRecord.GetSafeHwnd();

		HWND e = m_cmbFile.GetSafeHwnd();

		if (pCtrl->GetSafeHwnd() == m_cmbSel.GetSafeHwnd())
		{
			int fileIndex = m_cmbFile.GetCurSel();

			FileKVMap & fileKVMap = *m_pFileKVMap;

			KeyValueMap& keyValueMap = fileKVMap[fileIndex];

			CString value ;
			
			m_cmbSel.GetWindowText(value);

			keyValueMap[m_activeKey] = value;
		}
	}
	return CDialog::OnCommand(wParam, lParam);
}


Appreciate your help,
ns
GeneralRe: OnCommand() in a CDialog....... Pin
Ravi Bhavnani18-Mar-03 10:49
professionalRavi Bhavnani18-Mar-03 10:49 
GeneralRe: OnCommand() in a CDialog....... Pin
ns19-Mar-03 0:54
ns19-Mar-03 0:54 
GeneralRe: OnCommand() in a CDialog....... Pin
Ravi Bhavnani19-Mar-03 2:04
professionalRavi Bhavnani19-Mar-03 2:04 
GeneralRe: OnCommand() in a CDialog....... Pin
ns19-Mar-03 2:09
ns19-Mar-03 2:09 
GeneralRe: OnCommand() in a CDialog....... Pin
Ravi Bhavnani19-Mar-03 2:22
professionalRavi Bhavnani19-Mar-03 2:22 
GeneralOmigosh! Pin
Ravi Bhavnani19-Mar-03 2:23
professionalRavi Bhavnani19-Mar-03 2:23 
GeneralRe: Omigosh! Pin
ns19-Mar-03 2:55
ns19-Mar-03 2:55 
GeneralRe: Omigosh! Pin
Ravi Bhavnani19-Mar-03 5:19
professionalRavi Bhavnani19-Mar-03 5:19 
GeneralRe: Omigosh! Pin
ns19-Mar-03 5:25
ns19-Mar-03 5:25 
GeneralRe: Omigosh! Pin
Ravi Bhavnani19-Mar-03 5:32
professionalRavi Bhavnani19-Mar-03 5:32 
GeneralLVS_SELECT Pin
ns19-Mar-03 5:33
ns19-Mar-03 5:33 
QuestionHow get the path of any APP.EXE ?? Pin
Cris18-Mar-03 2:23
Cris18-Mar-03 2:23 
AnswerRe: How get the path of any APP.EXE ?? Pin
AlexO18-Mar-03 2:31
AlexO18-Mar-03 2:31 
GeneralRe: How get the path of any APP.EXE ?? Pin
Cris19-Mar-03 9:02
Cris19-Mar-03 9:02 
QuestionHow to check if a user is in a specific group Pin
Bluescreen200318-Mar-03 2:18
Bluescreen200318-Mar-03 2:18 
AnswerRe: How to check if a user is in a specific group Pin
Brian Shifrin18-Mar-03 6:13
Brian Shifrin18-Mar-03 6:13 
GeneralRe: How to check if a user is in a specific group Pin
Bluescreen200323-Mar-03 23:13
Bluescreen200323-Mar-03 23:13 

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.