Click here to Skip to main content
15,922,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRichedit - catch NM_SETFOCUS or EN_SETFOCUS message Pin
Enis2-Jul-03 10:02
Enis2-Jul-03 10:02 
GeneralRe: Richedit - catch NM_SETFOCUS or EN_SETFOCUS message Pin
Magnus Westin2-Jul-03 13:14
Magnus Westin2-Jul-03 13:14 
GeneralRe: Richedit - catch NM_SETFOCUS or EN_SETFOCUS message Pin
Enis2-Jul-03 22:59
Enis2-Jul-03 22:59 
QuestionHow to manipulate large numbers Pin
Omar Alvi2-Jul-03 9:59
Omar Alvi2-Jul-03 9:59 
AnswerRe: How to manipulate large numbers Pin
David Crow2-Jul-03 10:24
David Crow2-Jul-03 10:24 
AnswerRe: How to manipulate large numbers Pin
Enis2-Jul-03 10:35
Enis2-Jul-03 10:35 
GeneralRe: How to manipulate large numbers Pin
Omar Alvi3-Jul-03 9:45
Omar Alvi3-Jul-03 9:45 
QuestionScroll a CListCtrl? Pin
Dominik Reichl2-Jul-03 9:40
Dominik Reichl2-Jul-03 9:40 
Hello,

I am trying to scroll a CListCtrl. I have the number of the item which should be displayed at the top (so not in the middle, the bottom or anything else...). If it is possible, the item should be on top (sure, if it's one of the last lines, this isn't possible).

I tried various ways but none of them worked.

1) I used EnsureVisible twice. First ensure that the last item is visible and then make a second call to the final item. I thought Windows would internally scroll to the end and then from the end up to the item. But it didn't work. Either it scrolled simply to the end, or it does nothing (randomly).

2) I tried to use the Scroll function, but it scrolls randomly Big Grin | :-D Although I am pretty sure that I calculated the scroll amount correctly... Frown | :(

Do you have a short code snippet that scrolls to a specific item so it's at the top visible? How do you do it? Confused | :confused:

Thanks
-Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)

AnswerRe: Scroll a CListCtrl? Pin
basementman2-Jul-03 9:57
basementman2-Jul-03 9:57 
AnswerRe: Scroll a CListCtrl? Pin
Ryan Binns3-Jul-03 1:39
Ryan Binns3-Jul-03 1:39 
GeneralRe: Scroll a CListCtrl? Pin
Dominik Reichl3-Jul-03 3:45
Dominik Reichl3-Jul-03 3:45 
GeneralRe: Scroll a CListCtrl? Pin
Ryan Binns3-Jul-03 4:03
Ryan Binns3-Jul-03 4:03 
GeneralRe: Scroll a CListCtrl? Pin
Dominik Reichl3-Jul-03 5:56
Dominik Reichl3-Jul-03 5:56 
GeneralRe: Scroll a CListCtrl? Pin
Ryan Binns3-Jul-03 14:55
Ryan Binns3-Jul-03 14:55 
GeneralSelecting multiple CEdit Boxes Pin
K. Shaffer2-Jul-03 9:18
K. Shaffer2-Jul-03 9:18 
GeneralRe: Selecting multiple CEdit Boxes Pin
John R. Shaw2-Jul-03 11:16
John R. Shaw2-Jul-03 11:16 
GeneralRe: Selecting multiple CEdit Boxes Pin
Ryan Binns3-Jul-03 1:43
Ryan Binns3-Jul-03 1:43 
GeneralHaving some trouble subclassing dynamically created CButtons Pin
Flack2-Jul-03 8:57
Flack2-Jul-03 8:57 
GeneralRe: Having some trouble subclassing dynamically created CButtons Pin
basementman2-Jul-03 9:38
basementman2-Jul-03 9:38 
GeneralRe: Having some trouble subclassing dynamically created CButtons Pin
Flack2-Jul-03 10:14
Flack2-Jul-03 10:14 
GeneralRe: Having some trouble subclassing dynamically created CButtons Pin
Ryan Binns2-Jul-03 16:08
Ryan Binns2-Jul-03 16:08 
QuestionCreate and Access Hardware? Pin
Selevercin2-Jul-03 8:28
Selevercin2-Jul-03 8:28 
AnswerRe: Create and Access Hardware? Pin
John M. Drescher2-Jul-03 8:51
John M. Drescher2-Jul-03 8:51 
GeneralRe: Create and Access Hardware? Pin
Selevercin2-Jul-03 9:13
Selevercin2-Jul-03 9:13 
GeneralRe: Create and Access Hardware? Pin
John M. Drescher2-Jul-03 9:18
John M. Drescher2-Jul-03 9:18 

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.