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

C / C++ / MFC

 
AnswerRe: How can I monitor data on a serial port opened by another application? Pin
Gary R. Wheeler31-Mar-04 14:58
Gary R. Wheeler31-Mar-04 14:58 
AnswerRe: How can I monitor data on a serial port opened by another application? Pin
rmnowick31-Mar-04 15:31
rmnowick31-Mar-04 15:31 
GeneralRe: How can I monitor data on a serial port opened by another application? Pin
Harold Bamford1-Apr-04 12:41
Harold Bamford1-Apr-04 12:41 
GeneralRe: How can I monitor data on a serial port opened by another application? Pin
IamJimW1-Apr-04 17:04
IamJimW1-Apr-04 17:04 
GeneralGetMenuItemInfo generates Access Violation in USER32.dll Pin
jphillips_2003@hotmail.com31-Mar-04 14:49
jphillips_2003@hotmail.com31-Mar-04 14:49 
GeneralRe: GetMenuItemInfo generates Access Violation in USER32.dll Pin
Prakash Nadar31-Mar-04 15:06
Prakash Nadar31-Mar-04 15:06 
GeneralRe: GetMenuItemInfo generates Access Violation in USER32.dll Pin
jphillips_2003@hotmail.com31-Mar-04 15:30
jphillips_2003@hotmail.com31-Mar-04 15:30 
GeneralCombo box not showing pull down list Pin
rmnowick31-Mar-04 14:48
rmnowick31-Mar-04 14:48 
All,
I have created a combo box from the same set of parameters used to create a previous combo box. I hace verified that they have the same properties. Here are the properties. All "False" except where noted:

Data: empty box
ID: IDC_TRIGGERING
Owner Draw: No
Tabstop: True
Type: Drop List
Vertical Scrollbar: True
Visible: True

The idea is that I wish to present the user with a fixed list of values to choose from. The code to add items to the list is as follows:

nTriggerMode = GetPrivateProfileInt("Settings", "Triggering Mode", 0, "sdkdemo.ini");
lResult = SendMessage(GetDlgItem(hdlg, IDC_TRIGGERING), CB_ADDSTRING, 0, (long)"10");
lResult = SendMessage(GetDlgItem(hdlg, IDC_TRIGGERING), CB_ADDSTRING, 0, (long)"15");
SendMessage(GetDlgItem(hdlg, IDC_TRIGGERING), CB_ADDSTRING, 0, (long)"20");
SendMessage(GetDlgItem(hdlg, IDC_TRIGGERING), CB_SETCURSEL, nTriggerMode, 0);


The lResult variable is being incremented as the numbers are being added to the combo box, so that appears to be working. The value of nTriggerMode is pulled out of a file and whatever value it is set to initially (0, 1 or 2) successfully controls which of the three items is first shown in the display (10, 15 or 20).

Life is good...

Except, when I try and use the combo box by left clicking in the pulldown on the right of the box, nothing happens except that I get a narrow black line (1/16 inch) that appears under the combo box. The line then disappears when I click the pulldown again. The list of 3 items never appears.

I don't believe that I need to process messages for the combo box. The other application didn't. When I want to know what value the user has most recently entered I just do the following:

nTriggerMode = SendMessage(GetDlgItem(hdlg, IDC_TRIGGERING), CB_GETCURSEL, 0, 0);


Any ideas?

Robert

P.S. I am not using MFC in this code.
GeneralRe: Combo box not showing pull down list Pin
Christian Graus31-Mar-04 14:56
protectorChristian Graus31-Mar-04 14:56 
GeneralRe: Combo box not showing pull down list Pin
Prakash Nadar31-Mar-04 15:04
Prakash Nadar31-Mar-04 15:04 
GeneralRe: Combo box not showing pull down list Pin
rmnowick31-Mar-04 15:15
rmnowick31-Mar-04 15:15 
QuestionHow to use EnumPrinters function to enum all printers Pin
GflPower31-Mar-04 13:37
GflPower31-Mar-04 13:37 
AnswerRe: How to use EnumPrinters function to enum all printers Pin
Prakash Nadar31-Mar-04 14:55
Prakash Nadar31-Mar-04 14:55 
AnswerRe: How to use EnumPrinters function to enum all printers Pin
Indivara31-Mar-04 16:55
professionalIndivara31-Mar-04 16:55 
Generala question about socket Pin
Member 98096831-Mar-04 13:18
Member 98096831-Mar-04 13:18 
GeneralRe: a question about socket Pin
Prakash Nadar31-Mar-04 15:01
Prakash Nadar31-Mar-04 15:01 
GeneralRe: a question about socket Pin
Member 98096831-Mar-04 16:06
Member 98096831-Mar-04 16:06 
GeneralRe: a question about socket Pin
Prakash Nadar31-Mar-04 16:55
Prakash Nadar31-Mar-04 16:55 
GeneralRe: a question about socket Pin
Alexander M.,1-Apr-04 3:42
Alexander M.,1-Apr-04 3:42 
GeneralRe: a question about socket Pin
Member 9809681-Apr-04 14:10
Member 9809681-Apr-04 14:10 
GeneralDisable Back/Next/FontChange in webbrowser2 Pin
Ravi Bhavnani31-Mar-04 12:06
professionalRavi Bhavnani31-Mar-04 12:06 
Generaldlgdata.cpp error in line 43 Pin
youssef31-Mar-04 10:52
youssef31-Mar-04 10:52 
GeneralRe: dlgdata.cpp error in line 43 Pin
Rob Manderson31-Mar-04 11:25
protectorRob Manderson31-Mar-04 11:25 
GeneralRe: dlgdata.cpp error in line 43 Pin
xinzhu_liu23-Nov-09 15:17
xinzhu_liu23-Nov-09 15:17 
GeneralVisual C++ and Microcontroller Pin
knightri31-Mar-04 10:28
knightri31-Mar-04 10:28 

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.