Click here to Skip to main content
15,911,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFunny behaviour by operator new Pin
Haakon S.26-Sep-02 0:28
Haakon S.26-Sep-02 0:28 
GeneralRe: Funny behaviour by operator new Pin
Tomasz Sowinski26-Sep-02 0:43
Tomasz Sowinski26-Sep-02 0:43 
GeneralRe: Funny behaviour by operator new Pin
Roman Fadeyev26-Sep-02 1:05
Roman Fadeyev26-Sep-02 1:05 
GeneralRe: Funny behaviour by operator new Pin
Haakon S.26-Sep-02 1:17
Haakon S.26-Sep-02 1:17 
GeneralRe: Funny behaviour by operator new Pin
Roman Fadeyev26-Sep-02 1:47
Roman Fadeyev26-Sep-02 1:47 
GeneralCompiler Directives Pin
Ruca26-Sep-02 0:29
Ruca26-Sep-02 0:29 
GeneralRe: Compiler Directives Pin
Tomasz Sowinski26-Sep-02 0:37
Tomasz Sowinski26-Sep-02 0:37 
GeneralHook COM Dll called from VBScript Pin
tony_cork26-Sep-02 0:20
tony_cork26-Sep-02 0:20 
QuestionLinker Error ?? Pin
Mal26-Sep-02 0:15
Mal26-Sep-02 0:15 
AnswerRe: Linker Error ?? Pin
Tomasz Sowinski26-Sep-02 0:24
Tomasz Sowinski26-Sep-02 0:24 
GeneralRe: Linker Error ?? Pin
Roman Fadeyev26-Sep-02 1:21
Roman Fadeyev26-Sep-02 1:21 
GeneralRe: Linker Error ?? Pin
Tomasz Sowinski26-Sep-02 1:26
Tomasz Sowinski26-Sep-02 1:26 
AnswerRe: Linker Error ?? Pin
Raphael Kindt26-Sep-02 1:20
Raphael Kindt26-Sep-02 1:20 
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 

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.