Click here to Skip to main content
15,887,471 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry Settings For CoCreateInstanceAsAdmin Pin
Richard MacCutchan8-Apr-11 22:02
mveRichard MacCutchan8-Apr-11 22:02 
GeneralRe: Registry Settings For CoCreateInstanceAsAdmin Pin
vishalgpt20-Apr-11 4:34
vishalgpt20-Apr-11 4:34 
QuestionHow can I catch SetCurSel in ComboBox control ? Pin
_Flaviu8-Apr-11 0:50
_Flaviu8-Apr-11 0:50 
AnswerRe: How can I catch SetCurSel in ComboBox control ? Pin
_Flaviu8-Apr-11 1:11
_Flaviu8-Apr-11 1:11 
AnswerRe: How can I catch SetCurSel in ComboBox control ? Pin
Richard MacCutchan8-Apr-11 1:38
mveRichard MacCutchan8-Apr-11 1:38 
GeneralRe: How can I catch SetCurSel in ComboBox control ? Pin
_Flaviu8-Apr-11 1:47
_Flaviu8-Apr-11 1:47 
AnswerRe: How can I catch SetCurSel in ComboBox control ? Pin
వేంకటనారాయణ(venkatmakam)8-Apr-11 1:54
వేంకటనారాయణ(venkatmakam)8-Apr-11 1:54 
GeneralRe: How can I catch SetCurSel in ComboBox control ? Pin
_Flaviu8-Apr-11 2:06
_Flaviu8-Apr-11 2:06 
I try this :
// ComboBoxExt.h
public:
	int SetCurSel(int nSelect);

and
// ComboBoxExt.cpp

BEGIN_MESSAGE_MAP(CComboBoxExt, CComboBox)
	//{{AFX_MSG_MAP(CComboBoxExt)
	.....
	//}}AFX_MSG_MAP
	ON_MESSAGE(CB_SETCURSEL,SetCurSel)
END_MESSAGE_MAP()

int CComboBoxExt::SetCurSel(int nSelect) 
{
	// TODO: Add your control notification handler code here

	TRACE("\n bingo \n");
	return ::SendMessage(m_hWnd, CB_SETCURSEL, WPARAM(nSelect), 0);
}


but give an error :
unhandled exception on output.c , line 336 ...
AnswerRe: How can I catch SetCurSel in ComboBox control ? Pin
వేంకటనారాయణ(venkatmakam)8-Apr-11 2:17
వేంకటనారాయణ(venkatmakam)8-Apr-11 2:17 
GeneralRe: How can I catch SetCurSel in ComboBox control ? Pin
_Flaviu8-Apr-11 3:12
_Flaviu8-Apr-11 3:12 
QuestionRe: How can I catch SetCurSel in ComboBox control ? Pin
David Crow8-Apr-11 3:34
David Crow8-Apr-11 3:34 
AnswerRe: How can I catch SetCurSel in ComboBox control ? [modified] Pin
_Flaviu8-Apr-11 4:47
_Flaviu8-Apr-11 4:47 
AnswerRe: How can I catch SetCurSel in ComboBox control ? Pin
mrshiyi10-Apr-11 17:23
mrshiyi10-Apr-11 17:23 
GeneralRe: How can I catch SetCurSel in ComboBox control ? Pin
_Flaviu11-Apr-11 5:55
_Flaviu11-Apr-11 5:55 
AnswerRe: How can I catch SetCurSel in ComboBox control ? Pin
Radself16-Apr-11 6:22
Radself16-Apr-11 6:22 
Questioncocreateinstanceasadmin failed. Pin
vishalgpt7-Apr-11 23:49
vishalgpt7-Apr-11 23:49 
AnswerRe: cocreateinstanceasadmin failed. Pin
vishalgpt8-Apr-11 3:01
vishalgpt8-Apr-11 3:01 
GeneralRe: cocreateinstanceasadmin failed. Pin
Richard MacCutchan8-Apr-11 4:58
mveRichard MacCutchan8-Apr-11 4:58 
GeneralRe: cocreateinstanceasadmin failed. [modified] Pin
vishalgpt8-Apr-11 6:27
vishalgpt8-Apr-11 6:27 
Questionhow to add button on listcontrol instead of scrollbar Pin
raj15767-Apr-11 22:42
raj15767-Apr-11 22:42 
AnswerRe: how to add button on listcontrol instead of scrollbar Pin
Luc Pattyn7-Apr-11 23:44
sitebuilderLuc Pattyn7-Apr-11 23:44 
AnswerRe: how to add button on listcontrol instead of scrollbar Pin
Hans Dietrich7-Apr-11 23:47
mentorHans Dietrich7-Apr-11 23:47 
Questionadd button to listcontrol Pin
rajniyadav1a7-Apr-11 21:53
rajniyadav1a7-Apr-11 21:53 
AnswerRe: add button to listcontrol Pin
Hans Dietrich7-Apr-11 21:58
mentorHans Dietrich7-Apr-11 21:58 
AnswerRe: add button to listcontrol Pin
«_Superman_»8-Apr-11 3:36
professional«_Superman_»8-Apr-11 3:36 

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.