Click here to Skip to main content
15,904,288 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Get Volume Name From Path Pin
Richard Andrew x6428-Feb-11 17:44
professionalRichard Andrew x6428-Feb-11 17:44 
AnswerRe: Get Volume Name From Path Pin
Hans Dietrich28-Feb-11 17:44
mentorHans Dietrich28-Feb-11 17:44 
AnswerRe: Get Volume Name From Path Pin
Niklas L1-Mar-11 0:43
Niklas L1-Mar-11 0:43 
GeneralRe: Get Volume Name From Path Pin
Hans Dietrich1-Mar-11 1:23
mentorHans Dietrich1-Mar-11 1:23 
GeneralRe: Get Volume Name From Path Pin
Niklas L1-Mar-11 1:47
Niklas L1-Mar-11 1:47 
QuestionMFC command line in VC6.0 - repost Pin
Vaclav_28-Feb-11 4:07
Vaclav_28-Feb-11 4:07 
AnswerRe: MFC command line in VC6.0 - repost Pin
Hans Dietrich28-Feb-11 4:50
mentorHans Dietrich28-Feb-11 4:50 
GeneralSOLVED Re: MFC command line in VC6.0 - repost Pin
Vaclav_28-Feb-11 6:00
Vaclav_28-Feb-11 6:00 
QuestionHow can handle double click event in listctrl of checkbox style? Pin
Le@rner27-Feb-11 22:32
Le@rner27-Feb-11 22:32 
AnswerRe: How can handle double click event in listctrl of checkbox style? Pin
Hans Dietrich27-Feb-11 22:51
mentorHans Dietrich27-Feb-11 22:51 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Le@rner27-Feb-11 23:13
Le@rner27-Feb-11 23:13 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Hans Dietrich27-Feb-11 23:19
mentorHans Dietrich27-Feb-11 23:19 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Le@rner27-Feb-11 23:53
Le@rner27-Feb-11 23:53 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Niklas L27-Feb-11 23:35
Niklas L27-Feb-11 23:35 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Le@rner27-Feb-11 23:55
Le@rner27-Feb-11 23:55 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Richard MacCutchan28-Feb-11 0:55
mveRichard MacCutchan28-Feb-11 0:55 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Cool_Dev28-Feb-11 1:00
Cool_Dev28-Feb-11 1:00 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Richard MacCutchan28-Feb-11 1:12
mveRichard MacCutchan28-Feb-11 1:12 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Cool_Dev28-Feb-11 1:59
Cool_Dev28-Feb-11 1:59 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Richard MacCutchan28-Feb-11 6:00
mveRichard MacCutchan28-Feb-11 6:00 
GeneralRe: How can handle double click event in listctrl of checkbox style? [modified] Pin
Cool_Dev27-Feb-11 23:57
Cool_Dev27-Feb-11 23:57 
GeneralRe: How can handle double click event in listctrl of checkbox style? Pin
Le@rner28-Feb-11 0:20
Le@rner28-Feb-11 0:20 
QuestionGetComboBoxInfo implementation Pin
mesajflaviu27-Feb-11 20:05
mesajflaviu27-Feb-11 20:05 
AnswerRe: GetComboBoxInfo implementation Pin
Andrew Brock27-Feb-11 21:28
Andrew Brock27-Feb-11 21:28 
GeneralRe: GetComboBoxInfo implementation Pin
mesajflaviu27-Feb-11 22:27
mesajflaviu27-Feb-11 22:27 
Then perhaps you give me an alternative for this issue :
I need to have ComboBoxInfo.hwndList handle for the follow function :
void CComboBoxExt::PreSubclassWindow() 
{
	// TODO: Add your specialized code here and/or call the base class

	CComboBox::PreSubclassWindow();

	COMBOBOXINFO ComboBoxInfo;
	ComboBoxInfo.cbSize = sizeof(ComboBoxInfo);
	GetComboBoxInfo(m_hWnd,&ComboBoxInfo);

//	m_Edit.SubclassWindow(ComboBoxInfo.hwndEdit);
	m_List.SubclassWindow(ComboBoxInfo.hwndList);
	SetProp(ComboBoxInfo.hwndList, WndPropertyComboBoxEx, this);
	fNextListProc = (WNDPROC)SetWindowLong(ComboBoxInfo.hwndList, GWL_WNDPROC, (LONG)WinProcForList);    //    <- here I need ComboBoxInfo.hwndList
}

and implementation of WinProcForList is here :
LRESULT CComboBoxExt::WinProcForList(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	CComboBoxExt* pInstance = (CComboBoxExt*)GetProp(hWnd,WndPropertyComboBoxEx);
	ASSERT(pInstance != NULL);

	if(msg == LB_FINDSTRING)
	{
		TRACE("Replacing LB_FINDSTRING with LB_FINDSTRINGEXACT when looking for: \"%s\"\n", (LPCTSTR)lParam);
		msg = LB_FINDSTRINGEXACT;
	}

	return CallWindowProc(pInstance->fNextListProc, hWnd, msg, wParam, lParam);
}

any help or hint I will very appreciated !

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.