Click here to Skip to main content
15,891,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHOW TO PUT THE PROGRESS BAR CONTROL IN LISTVIEW IN WIN32 API Pin
amitmistry_petlad 5-Jan-07 17:21
amitmistry_petlad 5-Jan-07 17:21 
Questionerror C3867 in MFC Pin
FredrickNorge5-Jan-07 14:40
FredrickNorge5-Jan-07 14:40 
AnswerRe: error C3867 in MFC Pin
Mark Salsbery5-Jan-07 14:44
Mark Salsbery5-Jan-07 14:44 
GeneralRe: error C3867 in MFC Pin
FredrickNorge5-Jan-07 14:49
FredrickNorge5-Jan-07 14:49 
GeneralRe: error C3867 in MFC Pin
Mark Salsbery5-Jan-07 15:32
Mark Salsbery5-Jan-07 15:32 
AnswerRe: error C3867 in MFC Pin
Eytukan5-Jan-07 16:53
Eytukan5-Jan-07 16:53 
GeneralRe: error C3867 in MFC Pin
FredrickNorge6-Jan-07 0:30
FredrickNorge6-Jan-07 0:30 
QuestionEnableWindow Help Pin
celllllllll5-Jan-07 13:57
celllllllll5-Jan-07 13:57 
Hi All,

I posted my question earlier also but wasn't really satisfied. So, asking it again.
I have two comboboxes and if I select first item from first combobox then the second combobox should be disabled. And if I select any other items expect the first item from the first combobox, then the second combo box should be enabled.

I know how to disble and enable a window(using EnableWindow) but the problem I have is that I am not able to select that first item in the first combobox selecting which I disable my second combobox.

In the following code, I was trying it using GetCurSel and SetCurSel but it doesn't work. In the code, m_Au is the member of first combobox.
V is the first item in the first combobox of #define type.
m_C is the member of Second Combobox.

int nToken = m_Au.GetCurSel();<br />
   	m_Au.SetCurSel(0);<br />
  	if (nToken == V) <br />
	{<br />
		m_C.EnableWindow(FALSE);	<br />
	}<br />
	else<br />
	{<br />
	        m_C.EnableWindow(TRUE);<br />
	}


I populated my second combobox dynamically based on the first combobox. So, I mean to say that they are related to each other.

I will really appreciate the help.


C++Prog

AnswerRe: EnableWindow Help Pin
Mark Salsbery5-Jan-07 14:10
Mark Salsbery5-Jan-07 14:10 
GeneralRe: EnableWindow Help Pin
celllllllll5-Jan-07 14:15
celllllllll5-Jan-07 14:15 
GeneralRe: EnableWindow Help Pin
Mark Salsbery5-Jan-07 14:25
Mark Salsbery5-Jan-07 14:25 
AnswerRe: EnableWindow Help Pin
Eytukan5-Jan-07 17:10
Eytukan5-Jan-07 17:10 
AnswerRe: EnableWindow Help Pin
Eytukan5-Jan-07 17:14
Eytukan5-Jan-07 17:14 
AnswerRe: EnableWindow Help Pin
Hamid_RT5-Jan-07 19:06
Hamid_RT5-Jan-07 19:06 
GeneralRe: EnableWindow Help Pin
celllllllll9-Jan-07 8:26
celllllllll9-Jan-07 8:26 
GeneralRe: EnableWindow Help Pin
Hamid_RT9-Jan-07 18:08
Hamid_RT9-Jan-07 18:08 
QuestionSomewhat advanced C++ question... Pin
CAgent0075-Jan-07 13:33
CAgent0075-Jan-07 13:33 
AnswerRe: Somewhat advanced C++ question... Pin
PJ Arends5-Jan-07 13:46
professionalPJ Arends5-Jan-07 13:46 
GeneralRe: Somewhat advanced C++ question... Pin
CAgent0075-Jan-07 13:54
CAgent0075-Jan-07 13:54 
AnswerRe: Somewhat advanced C++ question... Pin
CoffeeAddict195-Jan-07 14:38
CoffeeAddict195-Jan-07 14:38 
AnswerRe: Somewhat advanced C++ question... Pin
Eytukan5-Jan-07 17:08
Eytukan5-Jan-07 17:08 
GeneralRe: Somewhat advanced C++ question... Pin
CAgent0078-Jan-07 8:13
CAgent0078-Jan-07 8:13 
GeneralRe: Somewhat advanced C++ question... Pin
Eytukan8-Jan-07 19:32
Eytukan8-Jan-07 19:32 
QuestionChanging the color of a pen or brush on the fly? Pin
CoffeeAddict195-Jan-07 10:20
CoffeeAddict195-Jan-07 10:20 
AnswerRe: Changing the color of a pen or brush on the fly? Pin
Christian Graus5-Jan-07 10:46
protectorChristian Graus5-Jan-07 10:46 

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.