Click here to Skip to main content
15,914,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to using Unicode on controls of VC++ 7 Pin
RChin3-Aug-04 23:08
RChin3-Aug-04 23:08 
Questionprogram Crashes ???? Pin
zahid_ash3-Aug-04 21:58
zahid_ash3-Aug-04 21:58 
AnswerRe: program Crashes ???? Pin
V.4-Aug-04 0:21
professionalV.4-Aug-04 0:21 
AnswerRe: program Crashes ???? Pin
Antony M Kancidrowski4-Aug-04 1:04
Antony M Kancidrowski4-Aug-04 1:04 
GeneralInteraction betwwen CDialog and CDocument Pin
Puah3-Aug-04 21:29
Puah3-Aug-04 21:29 
GeneralRe: Interaction betwwen CDialog and CDocument Pin
Michael P Butler3-Aug-04 23:38
Michael P Butler3-Aug-04 23:38 
QuestionWhat menu item was selected? Pin
gokings3-Aug-04 21:14
gokings3-Aug-04 21:14 
AnswerRe: What menu item was selected? Pin
cmk4-Aug-04 0:28
cmk4-Aug-04 0:28 
gokings wrote:
the problem with the combo box is that I want the window text to say "Select Widget" at all times, rather than to display the selected widget

This is non-standard GUI behaviour, unless there is a REALLY good reason you should try to suprise the user as little as possible.

That said, you could use an edit control with read-only text 'Select Widget' and handle mouse-click messages. When one is received create/display a list box under the edit control and then destroy it once the user makes a selection.

gokings wrote:
I want the same method to be invoked no matter which menu item is selected (which I can do by giving the same ID to each menu item)

Don't use the same id, rather use one method to handle the range of commands you will put in the menu.

No offense, but neither the comb-box requirement nor your menu workaround provide a standard interface. I would really rethink going this route.

Why don't you want to display the selected item in the combobox ?


...cmk

Save the whales - collect the whole set
AnswerRe: What menu item was selected? Pin
V.4-Aug-04 1:07
professionalV.4-Aug-04 1:07 
AnswerRe: What menu item was selected? Pin
cmk4-Aug-04 9:53
cmk4-Aug-04 9:53 
GeneralRe: What menu item was selected? Pin
gokings5-Aug-04 22:12
gokings5-Aug-04 22:12 
GeneralUrgent:malloc gives access violation for a C dll Pin
rana743-Aug-04 21:07
rana743-Aug-04 21:07 
QuestionHow to use MFC structure CMemory State in a Non-MFC application Pin
Prathima Prabhakar Rao3-Aug-04 20:51
Prathima Prabhakar Rao3-Aug-04 20:51 
AnswerRe: How to use MFC structure CMemory State in a Non-MFC application Pin
Anthony_Yio4-Aug-04 1:19
Anthony_Yio4-Aug-04 1:19 
QuestionHow to draw figures in MSFlexgrid Cell Pin
kjadhav3-Aug-04 20:18
kjadhav3-Aug-04 20:18 
Questiondebug mode fails to run?? Pin
xxhimanshu3-Aug-04 19:47
xxhimanshu3-Aug-04 19:47 
AnswerRe: debug mode fails to run?? Pin
Milton Karimbekallil3-Aug-04 20:23
Milton Karimbekallil3-Aug-04 20:23 
Generalsystem log-off/shut-down response from my application Pin
Anonymous3-Aug-04 19:20
Anonymous3-Aug-04 19:20 
GeneralPlease help me with the Arithmetic Coding base on Khalid Sayood Pin
huffmancoding3-Aug-04 18:48
huffmancoding3-Aug-04 18:48 
Generalstarting an application at startup, before logging in Pin
Anonymous3-Aug-04 18:22
Anonymous3-Aug-04 18:22 
GeneralRe: starting an application at startup, before logging in Pin
Antony M Kancidrowski4-Aug-04 1:09
Antony M Kancidrowski4-Aug-04 1:09 
GeneralRe: starting an application at startup, before logging in Pin
Anonymous4-Aug-04 1:27
Anonymous4-Aug-04 1:27 
GeneralRe: starting an application at startup, before logging in Pin
Antony M Kancidrowski4-Aug-04 2:49
Antony M Kancidrowski4-Aug-04 2:49 
GeneralRe: starting an application at startup, before logging in Pin
Anonymous4-Aug-04 1:24
Anonymous4-Aug-04 1:24 
QuestionSend Messages? Pin
Zero_One_ADO3-Aug-04 18:10
Zero_One_ADO3-Aug-04 18: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.