Click here to Skip to main content
15,915,086 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Permanent horizontal Scrollbar in CListView Pin
gerens2-Dec-09 11:18
gerens2-Dec-09 11:18 
QuestionRe: Permanent horizontal Scrollbar in CListView Pin
David Crow2-Dec-09 17:37
David Crow2-Dec-09 17:37 
AnswerRe: Permanent horizontal Scrollbar in CListView Pin
gerens2-Dec-09 23:55
gerens2-Dec-09 23:55 
QuestionMessage between windows Pin
msr_codeproject2-Dec-09 6:02
msr_codeproject2-Dec-09 6:02 
AnswerRe: Message between windows Pin
«_Superman_»2-Dec-09 6:20
professional«_Superman_»2-Dec-09 6:20 
AnswerRe: Message between windows Pin
Rajesh R Subramanian2-Dec-09 6:20
professionalRajesh R Subramanian2-Dec-09 6:20 
QuestionEmboldened Items in a CListBox Pin
maycockt2-Dec-09 5:19
maycockt2-Dec-09 5:19 
AnswerRe: Emboldened Items in a CListBox Pin
loyal ginger2-Dec-09 5:32
loyal ginger2-Dec-09 5:32 
What you can do is to use owner-draw listbox:

• Derive a class from CListBox and override CListBox::MeasureItem(), CListBox::DrawItem(), and PreCreateWindow() (to add LBS_OWNERDRAWFIXED or LBS_OWNERDRAWVARIABLE).
• Create an object of this class and call its Create() or CreateEx() function to create this control.

Note:

The parent of this list box will get one WM_MEASUREITEM for the whole list box if LBS_OWNERDRAWFIXED is used or one WM_MEASUREITEM for each item of the list box if LBS_OWNERDRAWVARIABLE is used. MFC will call the virtual function CListBox::MeasureItem(). The parent also gets WM_DRAWITEM, while MFC calls the virtual function CListBox::DrawItem(). Although the above two messages are sent to the parent, the virtual functions make it possible to handle some useful things by the list box. Through overriding these two functions, the self-controlling of the drawing process can be achieved for the list box.
AnswerRe: Emboldened Items in a CListBox Pin
«_Superman_»2-Dec-09 6:26
professional«_Superman_»2-Dec-09 6:26 
GeneralRe: Emboldened Items in a CListBox Pin
maycockt2-Dec-09 20:40
maycockt2-Dec-09 20:40 
QuestionCapture desktop WITHOUT active window Pin
Test1231242-Dec-09 4:19
Test1231242-Dec-09 4:19 
AnswerRe: Capture desktop WITHOUT active window Pin
loyal ginger2-Dec-09 5:40
loyal ginger2-Dec-09 5:40 
AnswerRe: Capture desktop WITHOUT active window Pin
«_Superman_»2-Dec-09 6:29
professional«_Superman_»2-Dec-09 6:29 
QuestionCListBox Tab Spacing Pin
maycockt2-Dec-09 2:59
maycockt2-Dec-09 2:59 
AnswerRe: CListBox Tab Spacing Pin
Rajesh R Subramanian2-Dec-09 3:02
professionalRajesh R Subramanian2-Dec-09 3:02 
GeneralRe: CListBox Tab Spacing Pin
maycockt2-Dec-09 3:07
maycockt2-Dec-09 3:07 
GeneralRe: CListBox Tab Spacing Pin
maycockt2-Dec-09 3:19
maycockt2-Dec-09 3:19 
Questionset bits on binary images Pin
franckesh2-Dec-09 2:24
franckesh2-Dec-09 2:24 
AnswerRe: set bits on binary images Pin
Richard MacCutchan2-Dec-09 2:36
mveRichard MacCutchan2-Dec-09 2:36 
GeneralRe: set bits on binary images Pin
franckesh2-Dec-09 2:50
franckesh2-Dec-09 2:50 
GeneralRe: set bits on binary images Pin
Richard MacCutchan2-Dec-09 3:21
mveRichard MacCutchan2-Dec-09 3:21 
AnswerRe: set bits on binary images Pin
CPallini2-Dec-09 8:10
mveCPallini2-Dec-09 8:10 
Questionstatic library dependency walker available? Pin
Chesnokov Yuriy2-Dec-09 1:11
professionalChesnokov Yuriy2-Dec-09 1:11 
AnswerRe: static library dependency walker available? Pin
Adam Roderick J2-Dec-09 2:02
Adam Roderick J2-Dec-09 2:02 
QuestionRe: static library dependency walker available? Pin
Chesnokov Yuriy2-Dec-09 2:10
professionalChesnokov Yuriy2-Dec-09 2:10 

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.