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

C / C++ / MFC

 
GeneralPrinting Output Pin
BRIMID12-Dec-04 4:14
BRIMID12-Dec-04 4:14 
GeneralRe: Printing Output Pin
PJ Arends12-Dec-04 9:31
professionalPJ Arends12-Dec-04 9:31 
GeneralRe: Printing Output Pin
BRIMID12-Dec-04 14:01
BRIMID12-Dec-04 14:01 
Questionis this kind icon in an exe file possible? Pin
includeh1012-Dec-04 4:05
includeh1012-Dec-04 4:05 
AnswerRe: is this kind icon in an exe file possible? Pin
PJ Arends12-Dec-04 9:20
professionalPJ Arends12-Dec-04 9:20 
Generalras "error 632" Pin
mohsen nourian12-Dec-04 3:52
mohsen nourian12-Dec-04 3:52 
GeneralYahoo Messenger Pin
Member 141138912-Dec-04 3:08
Member 141138912-Dec-04 3:08 
GeneralBUG: ScrollWindowEx smoothscrolling, Child windows are drawn displaced Pin
Nalik12-Dec-04 2:03
Nalik12-Dec-04 2:03 
Nice day, programmer !

would you be so kind to help me on with a non-ordinary problem I've got... ??? I assume you've had one in your practice.

I wanna make a smoothscroll of CListBox (with child buttons) using standard scroll bar which is usually embedded into every

Common control you know.

Problem: in the smoothscrolling transition process I get a copy of the child window (button) at the different coords... and

then this copy will move with the original button together, but at the bottom of that.

I had traced that process and got the following:
1. Create CListBox
2. Insert items and buttons into the control
3. Debug every WM_MOVE messages which come for every button from the ScrollWindowEx which is called (i suppose) at superwnd

function of the original 'LISTBOX' window class. (you know that ScrollWindowEx (with smoothscroll enabled) divide the

scrolling process by moving ticks)
4. For the 1st tick: a copy of the original button had been drawn by something after I had continued the debug process from

the WM_MOVE point.
5. For the 2nd tick: i tried to correct the code with pParent->RedrawWindow() and this->RedrawWindow(). it had been working

well until I didn't pass the execution to windows framework. The next tick came with the same artifact, which was being

moved with the original button...
6. So, i had got a button scrolled with 10 ticks and the copy at the bottom of the original one...

Partitially i have solved that problem. I put SetRedraw(0) for a button before the original WM_VSCROLL CListbox's handler

and then restored with SetRedraw(1) at the WM_MOVE button's handler. This worked well but a button was flickering when I

scrolled CListBox... Following that way I also need to handle every PG_UP, PG_DOWN and MOUSE_WHEEL event and correct with

the same code... But if I wanna scroll CListBox with the mouse cursor, dragging it up/down ???

Please, help me to solve this problem.

mailto: onelse@yahoo.com
I would be grateful for any respone.
Thank you.

Nalik
GeneralUpdateResource() ------ 2 Pin
includeh1012-Dec-04 0:49
includeh1012-Dec-04 0:49 
GeneralUpdateResource function Pin
includeh1012-Dec-04 0:29
includeh1012-Dec-04 0:29 
QuestionHow can I change focus between child windows within an MDI application Pin
wicked_guy12-Dec-04 0:16
wicked_guy12-Dec-04 0:16 
QuestionDid I miss something? Pin
jw8111-Dec-04 23:18
jw8111-Dec-04 23:18 
AnswerRe: Did I miss something? Pin
*Dreamz12-Dec-04 19:01
*Dreamz12-Dec-04 19:01 
GeneralRe: Did I miss something? Pin
jw8112-Dec-04 19:05
jw8112-Dec-04 19:05 
GeneralRe: Did I miss something? Pin
*Dreamz12-Dec-04 19:14
*Dreamz12-Dec-04 19:14 
GeneralRe: Did I miss something? Pin
jw8113-Dec-04 4:45
jw8113-Dec-04 4:45 
GeneralRe: Did I miss something? Pin
*Dreamz13-Dec-04 17:27
*Dreamz13-Dec-04 17:27 
GeneralC++ GameHook help Pin
RipeNades11-Dec-04 21:59
RipeNades11-Dec-04 21:59 
GeneraleMbedded Pin
su_penguin11-Dec-04 20:53
su_penguin11-Dec-04 20:53 
GeneralSingle MDI child Pin
sthaas11-Dec-04 19:58
sthaas11-Dec-04 19:58 
Generala little help... Pin
titanswimmer11-Dec-04 13:36
titanswimmer11-Dec-04 13:36 
GeneralRe: a little help... Pin
bob1697212-Dec-04 8:43
bob1697212-Dec-04 8:43 
Generalbitmap data Pin
includeh1011-Dec-04 12:40
includeh1011-Dec-04 12:40 
GeneralRe: bitmap data Pin
HalfWayMan12-Dec-04 1:31
HalfWayMan12-Dec-04 1:31 
GeneralRe: bitmap data Pin
includeh1012-Dec-04 2:11
includeh1012-Dec-04 2:11 

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.