Re: microsoft flat scrollbar control version 6.0
"RAN" <nijenhuis@wish.nl> wrote in message
news:1187625061.065885.207940@22g2000hsm.googlegroups.com...
1) I use the ActiveX scrollbar, this has the activex event Scroll,
(and event Change) (yes ok , i named it OnScroll())
2) I already showed the creation of the control, using the ActiveX
controls Create() method.
3) What i actually want is the place the control at the right end of
the screen, but my dialog in resource workshop is only so big, In
OnInitDialog() i use ShowWindow(SW_SHOWMAXIMIZED) to have the dialog
be al over the screen. So via resource workshop the placed ActiveX
scrollbar is in the wrong place on the dialog.
4) (I know about the hardwired numbers for CRect in the create method,
i must change it for all display formats.)
5) Maybe i should use something like MoveWindow() to get it in the
right position on the dialog.
The event notifications from an ActiveX control are quite different from
ordinary controls. Do you have a BEGIN_EVENTSINK_MAP properly declared?
This is very painstaking to do for a dynamically created ActiveX control.
If you place the control on the dialog template in the resource workshop
then there is no need to create the control dynamically: You will get two
controls!
The best thing to do if you need to create dynamically is to first create a
little temporary dialog project, add the control to the dialog template, and
then use the wizards to add the event handlers. Then you can copy the map
and function prototypes from the temporary project into your real project,
with minor changes to class names.
Yes, you should use MoveWindow to get it in the right position on the
dialog.