Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SSCANF Problem Pin
Cbadboy10-Oct-08 10:26
Cbadboy10-Oct-08 10:26 
GeneralRe: SSCANF Problem Pin
David Crow10-Oct-08 10:30
David Crow10-Oct-08 10:30 
QuestionHelp with Arrays Pin
LilKoopa9-Oct-08 14:42
LilKoopa9-Oct-08 14:42 
AnswerRe: Help with Arrays [modified] PinPopular
Michael Schubert9-Oct-08 19:08
Michael Schubert9-Oct-08 19:08 
GeneralRe: Help with Arrays Pin
LilKoopa10-Oct-08 13:21
LilKoopa10-Oct-08 13:21 
AnswerRe: Help with Arrays Pin
CPallini9-Oct-08 22:43
mveCPallini9-Oct-08 22:43 
QuestionRe: Help with Arrays Pin
David Crow10-Oct-08 4:32
David Crow10-Oct-08 4:32 
QuestionToolBar Combo - Changing Text After Selection? Pin
Kyudos9-Oct-08 11:59
Kyudos9-Oct-08 11:59 
This is a niggling little cosmetic issue that I thought would be easy to solve with a bit of message manipulation. It is turning out to be unreasonably difficult.

I have a combobox on a toolbar (as part of the Objective Studio framework) and I have filled it with a fixed set of 'menu like' contents (it actually echos a dynamic menu in the app).

a la...

Title 1
  - Entry 11
  - Entry 12
  - Entry 13
Title 2
  - Entry 21
  - Entry 22


What I wanted to do, when an Entry is selected, was to automatically remove the ' - ' at the start of the string.

So I used the CBS_DROPDOWN style (instead of the CBS_DROPDOWNLIST) so I could 'edit' the contents of the selection, while using PreTranslateMessage to prevent keyboard edits. I then caught the CBN_SELCHANGE event, from which I can get the current selection, edit the text and then SetWindowText. This all works, but occurs BEFORE the combo box edit control updates, meaning the Entry is set back to list value (with the ' - '). I need a CBN event after update, but their isn't one.

Any suggestions? I don't really want to go so far as deriving a new control to solve this minor issue, but it is bugging me a bit.
AnswerRe: ToolBar Combo - Changing Text After Selection? Pin
Kyudos12-Oct-08 14:17
Kyudos12-Oct-08 14:17 
QuestionRTL_USER_PROCESS_PARAMETERS.CommandLine is only for current process? Pin
Jack Rong9-Oct-08 9:53
Jack Rong9-Oct-08 9:53 
QuestionRe: RTL_USER_PROCESS_PARAMETERS.CommandLine is only for current process? Pin
CPallini9-Oct-08 10:00
mveCPallini9-Oct-08 10:00 
AnswerRe: RTL_USER_PROCESS_PARAMETERS.CommandLine is only for current process? Pin
Jack Rong9-Oct-08 10:33
Jack Rong9-Oct-08 10:33 
GeneralRe: RTL_USER_PROCESS_PARAMETERS.CommandLine is only for current process? Pin
CPallini9-Oct-08 22:37
mveCPallini9-Oct-08 22:37 
Questionresource leak in destructor? Pin
George_George9-Oct-08 3:27
George_George9-Oct-08 3:27 
AnswerRe: resource leak in destructor? Pin
CPallini9-Oct-08 3:42
mveCPallini9-Oct-08 3:42 
GeneralRe: resource leak in destructor? Pin
George_George9-Oct-08 18:07
George_George9-Oct-08 18:07 
GeneralRe: resource leak in destructor? Pin
CPallini9-Oct-08 21:50
mveCPallini9-Oct-08 21:50 
GeneralRe: resource leak in destructor? Pin
George_George9-Oct-08 22:18
George_George9-Oct-08 22:18 
GeneralRe: resource leak in destructor? Pin
CPallini10-Oct-08 0:17
mveCPallini10-Oct-08 0:17 
GeneralRe: resource leak in destructor? Pin
George_George10-Oct-08 0:33
George_George10-Oct-08 0:33 
AnswerRe: resource leak in destructor? Pin
led mike9-Oct-08 4:26
led mike9-Oct-08 4:26 
GeneralRe: resource leak in destructor? Pin
Mark Salsbery9-Oct-08 5:21
Mark Salsbery9-Oct-08 5:21 
GeneralRe: resource leak in destructor? Pin
Roger Stoltz9-Oct-08 5:30
Roger Stoltz9-Oct-08 5:30 
GeneralRe: resource leak in destructor? Pin
led mike9-Oct-08 5:32
led mike9-Oct-08 5:32 
GeneralRe: resource leak in destructor? Pin
George_George9-Oct-08 18:09
George_George9-Oct-08 18:09 

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.