Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMap Container & Sorting :: STL Pin
valikac9-Sep-02 9:52
valikac9-Sep-02 9:52 
GeneralRe: Map Container & Sorting :: STL Pin
Joaquín M López Muñoz9-Sep-02 11:01
Joaquín M López Muñoz9-Sep-02 11:01 
GeneralRe: Map Container & Sorting :: STL Pin
jhwurmbach10-Sep-02 4:04
jhwurmbach10-Sep-02 4:04 
GeneralRe: Map Container & Sorting :: STL Pin
Alexandru Savescu10-Sep-02 4:48
Alexandru Savescu10-Sep-02 4:48 
GeneralRe: Map Container & Sorting :: STL Pin
valikac10-Sep-02 10:19
valikac10-Sep-02 10:19 
QuestionHow to change editbox's background color when it is set to read-only? Pin
Vincent Ye9-Sep-02 9:19
Vincent Ye9-Sep-02 9:19 
AnswerRe: How to change editbox's background color when it is set to read-only? Pin
Carlos Antollini9-Sep-02 9:34
Carlos Antollini9-Sep-02 9:34 
AnswerRe: How to change editbox's background color when it is set to read-only? Pin
adamUK9-Sep-02 9:39
adamUK9-Sep-02 9:39 
You can!! Smile | :)

handle the WM_CTLCOLOR message and check if the handle of the window passed to the handler function is equal to the handle of the editbox whose colour you want to change.

Then set the handle hbr to the brush you want to use as your background. Call SetBkColor() to change the background colour used when painting your text.

Look up WM_CTLCOLOR in MSDN!!

hope this helps

Adam.

"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
GeneralRe: How to change editbox's background color when it is set to read-only? Pin
Vincent Ye9-Sep-02 9:45
Vincent Ye9-Sep-02 9:45 
GeneralRe: How to change editbox's background color when it is set to read-only? Pin
adamUK9-Sep-02 10:04
adamUK9-Sep-02 10:04 
GeneralAccess listbox from view's class Pin
danag9-Sep-02 9:15
danag9-Sep-02 9:15 
GeneralRe: Access listbox from view's class Pin
Dave Bryant9-Sep-02 11:13
Dave Bryant9-Sep-02 11:13 
GeneralRe: Access listbox from view's class Pin
danag9-Sep-02 13:47
danag9-Sep-02 13:47 
GeneralRe: Access listbox from view's class Pin
Dave Bryant9-Sep-02 13:54
Dave Bryant9-Sep-02 13:54 
GeneralSplitter Window Drawing Pin
insanely4209-Sep-02 9:05
insanely4209-Sep-02 9:05 
GeneralRe: Splitter Window Drawing Pin
.dan.g.9-Sep-02 14:15
professional.dan.g.9-Sep-02 14:15 
GeneralEncrypting Packets. Pin
Mike Doner9-Sep-02 9:01
Mike Doner9-Sep-02 9:01 
GeneralRe: Encrypting Packets. Pin
Joaquín M López Muñoz9-Sep-02 9:11
Joaquín M López Muñoz9-Sep-02 9:11 
GeneralAccess violation reading location 0x00000110. Please help. Pin
Redeemer-dk9-Sep-02 8:57
Redeemer-dk9-Sep-02 8:57 
GeneralRe: Access violation reading location 0x00000110. Please help. Pin
jhwurmbach10-Sep-02 4:09
jhwurmbach10-Sep-02 4:09 
GeneralProblem Find Resources In Extension DLL From ATL Exe Server Pin
Bill S9-Sep-02 8:09
professionalBill S9-Sep-02 8:09 
GeneralRe: Problem Find Resources In Extension DLL From ATL Exe Server Pin
Tomasz Sowinski9-Sep-02 8:21
Tomasz Sowinski9-Sep-02 8:21 
GeneralRe: Problem Find Resources In Extension DLL From ATL Exe Server Pin
Bill S9-Sep-02 8:23
professionalBill S9-Sep-02 8:23 
GeneralRe: Problem Find Resources In Extension DLL From ATL Exe Server Pin
Tomasz Sowinski9-Sep-02 8:30
Tomasz Sowinski9-Sep-02 8:30 
GeneralRe: Problem Find Resources In Extension DLL From ATL Exe Server Pin
Bill S9-Sep-02 8:37
professionalBill S9-Sep-02 8:37 

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.