WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Control Manager
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

cGetCBItem Returns Text Instead of Strings

Keywords:    cGetCBItem

Question:

I have run across an instance where cGetCBItem returns the text in the edit box instead of the strings in the list. In this same instance, cSetCBItem fails.

The specific example that I have been working with is trying to set the country code combobox in the 'Make New Connection' dialog for making new Dial-up networking connections. I am using Windows 95, with the old version of Dial-up networking.

If I select the ComboBox control with the mouse before this part of my script rolls around, Both functions work normally.

Answer:

In some cases, rarely used controls don't really exist unless you click on them.

Try hitting the combobox with a cClickButton before doing anything else.

Question (Thread continued):

cClickButton does not produce any noticeable change in the behavior of the control. Do you know if sending any other messages, like a WM_ACTIVATE would do anything?

Answer:

Might try a cClickButton to activate it, then maybe send it a keystroke like a downarrow.
Article ID:   W12491
Filename:   CGetCBItem Returns Text Instead of Strings.txt
File Created: 1999:04:15:16:47:36
Last Updated: 1999:04:15:16:47:36