Click here to Skip to main content
15,889,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMultiple view in SDI Pin
nadra26-Sep-02 0:05
nadra26-Sep-02 0:05 
GeneralRe: Multiple view in SDI Pin
Tomasz Sowinski26-Sep-02 0:22
Tomasz Sowinski26-Sep-02 0:22 
GeneralRe: Multiple view in SDI Pin
Roman Fadeyev26-Sep-02 1:41
Roman Fadeyev26-Sep-02 1:41 
Generalere FTP question Pin
Renjith Ramachandran25-Sep-02 23:49
Renjith Ramachandran25-Sep-02 23:49 
GeneralRe: _DEBUG question Pin
Tomasz Sowinski26-Sep-02 2:21
Tomasz Sowinski26-Sep-02 2:21 
GeneralListbox Pin
suresh_sathya25-Sep-02 22:45
suresh_sathya25-Sep-02 22:45 
GeneralRe: Listbox Pin
Steve S25-Sep-02 22:56
Steve S25-Sep-02 22:56 
GeneralRe: Listbox Pin
Steve S26-Sep-02 23:46
Steve S26-Sep-02 23:46 
Just for the rocket scientists out there;P

If you know the height of one item (htItem), (LB_GETITEMHEIGHT) and you know the client height of the list (htClient), you can, by dividing htClient by htItem, determine the number of visible items.

If you then know the top index, you can also work out the bottom index.
To make items become visible programmatically, you can scroll the list by calling SetTopIndex (in MFC, message is LB_SETTOPINDEX) appropriately.

If you resize the list box, you have to recalculate, of course

Steve S
[This signature space available for rent]
GeneralCreate Dialog Pin
Anonymous25-Sep-02 22:44
Anonymous25-Sep-02 22:44 
GeneralRe: Create Dialog Pin
Roman Fadeyev25-Sep-02 23:15
Roman Fadeyev25-Sep-02 23:15 
GeneralRe: Create Dialog Pin
Anonymous25-Sep-02 23:34
Anonymous25-Sep-02 23:34 
GeneralRe: Create Dialog Pin
Roman Fadeyev25-Sep-02 23:58
Roman Fadeyev25-Sep-02 23:58 
GeneralRe: Create Dialog Pin
Anonymous26-Sep-02 0:37
Anonymous26-Sep-02 0:37 
GeneralThe difference between VERIFIY() and ASSERT()... Pin
Raphael Kindt25-Sep-02 21:51
Raphael Kindt25-Sep-02 21:51 
GeneralRe: The difference between VERIFIY() and ASSERT()... Pin
Steve S25-Sep-02 21:58
Steve S25-Sep-02 21:58 
GeneralRe: The difference between VERIFIY() and ASSERT()... Pin
yourbuddy7726-Sep-02 1:17
yourbuddy7726-Sep-02 1:17 
QuestionCan somebody explain these lines for me? Pin
Mazdak25-Sep-02 21:29
Mazdak25-Sep-02 21:29 
AnswerRe: Can somebody explain these lines for me? Pin
adamUK25-Sep-02 21:45
adamUK25-Sep-02 21:45 
GeneralRe: Can somebody explain these lines for me? Pin
Mazdak25-Sep-02 22:21
Mazdak25-Sep-02 22:21 
AnswerRe: Can somebody explain these lines for me? Pin
Steve S25-Sep-02 21:46
Steve S25-Sep-02 21:46 
GeneralRe: Can somebody explain these lines for me? Pin
Mazdak25-Sep-02 22:20
Mazdak25-Sep-02 22:20 
Generallistbox question Pin
Mazdak25-Sep-02 20:59
Mazdak25-Sep-02 20:59 
GeneralRe: listbox question Pin
Roman Fadeyev25-Sep-02 23:35
Roman Fadeyev25-Sep-02 23:35 
GeneralRe: listbox question Pin
Mazdak25-Sep-02 23:50
Mazdak25-Sep-02 23:50 
GeneralCString Unicode Problem! Pin
Daniel Strigl25-Sep-02 20:49
Daniel Strigl25-Sep-02 20:49 

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.