Click here to Skip to main content
16,014,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Install Wizard Pin
Shog928-May-02 15:49
sitebuilderShog928-May-02 15:49 
GeneralRe: Install Wizard Pin
Steve L.28-May-02 16:05
Steve L.28-May-02 16:05 
GeneralRe: Install Wizard Pin
tiaozi28-May-02 22:10
tiaozi28-May-02 22:10 
GeneralRepeat a task for set time period Pin
paulb28-May-02 14:56
paulb28-May-02 14:56 
GeneralRe: Repeat a task for set time period Pin
28-May-02 15:03
suss28-May-02 15:03 
GeneralRe: Repeat a task for set time period Pin
Nish Nishant28-May-02 15:11
sitebuilderNish Nishant28-May-02 15:11 
GeneralRe: Repeat a task for set time period Pin
Alexandru Savescu28-May-02 23:13
Alexandru Savescu28-May-02 23:13 
GeneralHelp - can't get my user drawn combo box to work. Pin
28-May-02 14:49
suss28-May-02 14:49 
The purpose if this derived combo box is to allow each option to occupy more than one line.

I have implimented DrawItem, MeasureItem, and PreCreateWindow functions.

I use AddString to add string to the drop down list.
Edit: I did not overwrite AddString

In my DrawItem function, I use GetLBText( nIndex, rString ). (And then use DrawText after inserting line breaks.)

rString wouldn't return the string I inserted earlier.

In fact, the string is at most 4 characters long, and characters aren't the ones that can be typed in from the keyboard. Most of time the characters are just bars similar to this "|".

I'm thinking that AddString and GetLBText are not good with user drawn control but I don't know exactly how.

Another relatively minor problem is that MeasureItem doesn't seem to be taking effect. It doesn't matter what height MeasureItem gives, I still get 1-line height.

All help is appreciated, thanks.

Edit:
Also, the reason I use AddString is because
1) I am expanding a program with this new class where CComboBox was previously used. If I write AddItem then I will have to go back and change every instance where AddString is used.
2) It's nice to have the same interface as CComboBox.

Another question, can I adjust the edit control part of the Combo Box on the fly? When I play around with it, I can get each option in the drop down list to occupy different height, but I haven't figure out how to adjust the size of the edit control.

Thanks.

GeneralRe: Help - can't get my user drawn combo box to work. Pin
Shog928-May-02 16:00
sitebuilderShog928-May-02 16:00 
GeneralRe: Help - can't get my user drawn combo box to work. Pin
28-May-02 19:10
suss28-May-02 19:10 
QuestionCRichEditCtrl question? Pin
Surender28-May-02 14:39
Surender28-May-02 14:39 
AnswerRe: CRichEditCtrl question? Pin
28-May-02 14:52
suss28-May-02 14:52 
AnswerRe: CRichEditCtrl question? Pin
Alexandru Savescu28-May-02 23:15
Alexandru Savescu28-May-02 23:15 
GeneralRe: CRichEditCtrl question? Pin
Marc Richarme29-May-02 8:25
Marc Richarme29-May-02 8:25 
GeneralWhen I selected the menu "build-start debug-attach", there is no processes shown in the "attach process" dialog box Pin
transoft28-May-02 14:32
transoft28-May-02 14:32 
GeneralRe: When I selected the menu "build-start debug-attach", there is no processes shown in the "attach process" dialog box Pin
Mike Nordell28-May-02 23:20
Mike Nordell28-May-02 23:20 
GeneralResources ... Pin
Max Santos28-May-02 14:27
Max Santos28-May-02 14:27 
GeneralRe: Resources ... Pin
Paul M Watt28-May-02 14:33
mentorPaul M Watt28-May-02 14:33 
GeneralRe: Resources ... Pin
Max Santos28-May-02 14:52
Max Santos28-May-02 14:52 
GeneralRe: Resources ... Pin
Paul M Watt28-May-02 14:59
mentorPaul M Watt28-May-02 14:59 
GeneralRe: Resources ... Pin
Max Santos28-May-02 15:19
Max Santos28-May-02 15:19 
GeneralRe: Resources ... Pin
-Dy28-May-02 22:59
-Dy28-May-02 22:59 
GeneralRe: Resources ... Pin
Alexandru Savescu28-May-02 23:19
Alexandru Savescu28-May-02 23:19 
GeneralPostMessage() Problem in ActiveX Control from Thread Pin
RickGavin28-May-02 14:22
RickGavin28-May-02 14:22 
GeneralRe: PostMessage() Problem in ActiveX Control from Thread Pin
Paul M Watt28-May-02 14:47
mentorPaul M Watt28-May-02 14:47 

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.