Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Doc/View based app without menu bar Pin
Michael P Butler4-Aug-04 0:48
Michael P Butler4-Aug-04 0:48 
GeneralRe: Doc/View based app without menu bar Pin
Suresh Chandra M4-Aug-04 0:52
Suresh Chandra M4-Aug-04 0:52 
QuestionTansfer a string formula from Excel to C++ ?? Pin
GAR.J4-Aug-04 0:23
GAR.J4-Aug-04 0:23 
AnswerRe: Tansfer a string formula from Excel to C++ ?? Pin
palbano4-Aug-04 5:11
palbano4-Aug-04 5:11 
GeneralNo Question, Solution Pin
V.3-Aug-04 23:42
professionalV.3-Aug-04 23:42 
GeneralWindows Socket problem Pin
bouli3-Aug-04 23:19
bouli3-Aug-04 23:19 
GeneralRe: Windows Socket problem Pin
Antony M Kancidrowski4-Aug-04 1:02
Antony M Kancidrowski4-Aug-04 1:02 
GeneralRe: Windows Socket problem Pin
bouli4-Aug-04 2:01
bouli4-Aug-04 2:01 
GeneralRe: Windows Socket problem Pin
Antony M Kancidrowski4-Aug-04 2:39
Antony M Kancidrowski4-Aug-04 2:39 
GeneralRe: Windows Socket problem Pin
Anthony_Yio4-Aug-04 1:32
Anthony_Yio4-Aug-04 1:32 
GeneralRe: Windows Socket problem Pin
bouli4-Aug-04 1:56
bouli4-Aug-04 1:56 
GeneralRe: Windows Socket problem Pin
Anthony_Yio4-Aug-04 19:48
Anthony_Yio4-Aug-04 19:48 
GeneralRe: Windows Socket problem Pin
bouli4-Aug-04 22:24
bouli4-Aug-04 22:24 
QuestionHow to add open ocuments(in MDI) as tree items? Pin
mahatma_cis3-Aug-04 23:10
mahatma_cis3-Aug-04 23:10 
GeneralResizing main application window to show just the desired client rectangle Pin
Gem3-Aug-04 22:39
Gem3-Aug-04 22:39 
GeneralStreams and operation calls Pin
User 8348703-Aug-04 22:01
User 8348703-Aug-04 22:01 
GeneralRe: Streams and operation calls Pin
Antony M Kancidrowski4-Aug-04 1:14
Antony M Kancidrowski4-Aug-04 1:14 
QuestionHow to using Unicode on controls of VC++ 7 Pin
Anonymous3-Aug-04 21:59
Anonymous3-Aug-04 21:59 
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 
Due to limitations of a combo box I was unable to get around, I decided to use a button and draw a popup menu when the button is clicked. The problem is that the contents of the menu are dynamic (for example, a list of widgets). 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), and have that method ask the CMenu object which item was selected. However, there does not seem to be a method of CMenu to ask which menu item was selected. I suppose it would have been too easy to have TrackPopupMenu() return the item selected.

Incidently, 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.
Using SetWindowText() on the CComboBox does not do the trick.

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.