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

C / C++ / MFC

 
QuestionPassing data in dialog based application (model dialog) Pin
hrishiS28-Sep-09 18:54
hrishiS28-Sep-09 18:54 
AnswerRe: Passing data in dialog based application (model dialog) Pin
Solon_lee28-Sep-09 19:30
Solon_lee28-Sep-09 19:30 
GeneralRe: Passing data in dialog based application (model dialog) Pin
hrishiS28-Sep-09 19:32
hrishiS28-Sep-09 19:32 
AnswerRe: Passing data in dialog based application (model dialog) Pin
Iain Clarke, Warrior Programmer28-Sep-09 19:50
Iain Clarke, Warrior Programmer28-Sep-09 19:50 
GeneralRe: Passing data in dialog based application (model dialog) Pin
hrishiS28-Sep-09 20:12
hrishiS28-Sep-09 20:12 
QuestionHow to get list of worksheet names using VC++ [modified] Pin
gtag28-Sep-09 18:09
gtag28-Sep-09 18:09 
AnswerRe: How to get list of worksheet names using VC++ Pin
Steve1443-Nov-09 18:38
Steve1443-Nov-09 18:38 
QuestionGetDlgItem Pin
voisdnull28-Sep-09 17:08
voisdnull28-Sep-09 17:08 
On BN_CLICKED, I do:

hCombo = GetDlgItem(hwnd,COMBOBOX_WAVEFORMTYPE);
EnableWindow(hCombo,FALSE)

to attempt to disable my combobox. the odd thing is that it appears disbled since it's grayed out. But, I can still pull down the arrow and see the contents. If I do this on WM_CREATE:

hCombo =
CreateWindow(
"combobox", // Either "edit", "button", "combobox", or "static"
"", // Can be set to ""
CBS_DROPDOWNLIST|CBS_UPPERCASE|WS_CHILD|WS_TABSTOP,
0, 0, 0, 0, // Positioning information
hwnd, // The parent window handle
(HMENU)(COMBOBOX_WAVEFORMTYPE), // The Identifier
hInst, // Global application instance
NULL); // Additional data, not required

SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)"Square Wave");
SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)"Triangle Wave");
SendMessage(hCombo,CB_ADDSTRING,0,(LPARAM)"Saw tooth");

EnableWindow(hCombo,FALSE);

It works fine! What is the difference? This problem is killing me. Thanks
AnswerRe: GetDlgItem Pin
Rajesh R Subramanian28-Sep-09 18:21
professionalRajesh R Subramanian28-Sep-09 18:21 
GeneralRe: GetDlgItem Pin
Iain Clarke, Warrior Programmer28-Sep-09 19:52
Iain Clarke, Warrior Programmer28-Sep-09 19:52 
GeneralRe: GetDlgItem Pin
voisdnull29-Sep-09 4:48
voisdnull29-Sep-09 4:48 
GeneralRe: GetDlgItem Pin
Iain Clarke, Warrior Programmer1-Oct-09 1:39
Iain Clarke, Warrior Programmer1-Oct-09 1:39 
GeneralRe: GetDlgItem Pin
voisdnull1-Oct-09 7:34
voisdnull1-Oct-09 7:34 
QuestionBitmaps won't show in splitter pane - only one at the time. Seeking advice how to trobleshoot. Pin
Vaclav_28-Sep-09 15:01
Vaclav_28-Sep-09 15:01 
AnswerRe: Bitmaps won't show in splitter pane - only one at the time. Seeking advice how to trobleshoot. Pin
Richard MacCutchan28-Sep-09 22:27
mveRichard MacCutchan28-Sep-09 22:27 
GeneralRe: Bitmaps won't show in splitter pane - only one at the time. Seeking advice how to trobleshoot. Pin
Vaclav_29-Sep-09 3:48
Vaclav_29-Sep-09 3:48 
QuestionMy project is allways out of date Pin
SNArruda28-Sep-09 9:57
SNArruda28-Sep-09 9:57 
AnswerRe: My project is allways out of date Pin
Rick York28-Sep-09 11:52
mveRick York28-Sep-09 11:52 
QuestionWindows 7 / MAPIResolveName Pin
Steve Thresher28-Sep-09 6:33
Steve Thresher28-Sep-09 6:33 
AnswerRe: Windows 7 / MAPIResolveName Pin
Randor 28-Sep-09 19:45
professional Randor 28-Sep-09 19:45 
GeneralRe: Windows 7 / MAPIResolveName Pin
Steve Thresher28-Sep-09 21:19
Steve Thresher28-Sep-09 21:19 
QuestionAuto update software Pin
includeh1028-Sep-09 5:29
includeh1028-Sep-09 5:29 
AnswerRe: Auto update software Pin
Moak28-Sep-09 6:08
Moak28-Sep-09 6:08 
AnswerRe: Auto update software Pin
Hans Dietrich28-Sep-09 11:51
mentorHans Dietrich28-Sep-09 11:51 
GeneralRe: Auto update software Pin
includeh1029-Sep-09 9:38
includeh1029-Sep-09 9:38 

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.