Click here to Skip to main content
15,896,557 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: resize ATL activeX control Pin
Jason De Arte1-Sep-04 5:12
Jason De Arte1-Sep-04 5:12 
GeneralRe: resize ATL activeX control Pin
Hesham Amin1-Sep-04 9:04
Hesham Amin1-Sep-04 9:04 
GeneralRe: resize ATL activeX control Pin
Jason De Arte1-Sep-04 13:21
Jason De Arte1-Sep-04 13:21 
GeneralIE Toolbar multiline Pin
DARK_GARRY30-Aug-04 11:45
DARK_GARRY30-Aug-04 11:45 
Generalvec[0] vs. vec.front() Pin
Johann Gerell29-Aug-04 23:36
Johann Gerell29-Aug-04 23:36 
GeneralRe: vec[0] vs. vec.front() Pin
Joaquín M López Muñoz29-Aug-04 23:54
Joaquín M López Muñoz29-Aug-04 23:54 
QuestionCan SCROLLBAR be superclassed? Pin
retinoscopy26-Aug-04 16:23
retinoscopy26-Aug-04 16:23 
AnswerRe: Can SCROLLBAR be superclassed? Pin
Jörgen Sigvardsson27-Aug-04 11:05
Jörgen Sigvardsson27-Aug-04 11:05 
You can subclass the scrollbar. Subclassing doesn't affect the class name. The article mentions that superclassing scrollbars don't work.

I.e., create the scrollbar, and then subclass it. See CWindowImpl::SubclassWindow().


retinoscopy wrote:
But I cannot find any special code that handle the scrollbar in ATL.

Scrollbars are usually handled by intercepting WM_HSCROLL and WS_VSCROLL. When the scrollbar is manipulated by the user, it sends either of those messages, depending on its orientation, to its parent window. Windows can be created using the WS_HSCROLL and WS_VSCROLL window styles, which will automatically add scrollbars to the window. This is done by windows itself, and not ATL (MFC nor WTL for that matter).

See this[^] for information about scroll bars, and then take a look at either CWindowImpl::SubclassWindow (to implement a class which handles the subclassing), or see CContainedWindowT[^] (to intercept scroll bar messages in another class' message map).

If you haven't already, take a look at WTL, as it makes windowing with ATL a lot easier.

--
...Coca Cola, sometimes war...
GeneralRe: Can SCROLLBAR be superclassed? Pin
retinoscopy29-Aug-04 14:46
retinoscopy29-Aug-04 14:46 
GeneralRe: Can SCROLLBAR be superclassed? Pin
retinoscopy29-Aug-04 15:11
retinoscopy29-Aug-04 15:11 
GeneralRe: Can SCROLLBAR be superclassed? Pin
Jörgen Sigvardsson29-Aug-04 21:12
Jörgen Sigvardsson29-Aug-04 21:12 
GeneralC++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 2:49
AssemblySoft26-Aug-04 2:49 
GeneralRe: C++ Class using STL - File IO Pin
Nitron26-Aug-04 5:04
Nitron26-Aug-04 5:04 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 5:23
AssemblySoft26-Aug-04 5:23 
GeneralRe: C++ Class using STL - File IO Pin
Nitron26-Aug-04 5:28
Nitron26-Aug-04 5:28 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 5:43
AssemblySoft26-Aug-04 5:43 
GeneralRe: C++ Class using STL - File IO Pin
Nitron26-Aug-04 5:45
Nitron26-Aug-04 5:45 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 5:51
AssemblySoft26-Aug-04 5:51 
GeneralRe: C++ Class using STL - File IO Pin
Nitron26-Aug-04 5:54
Nitron26-Aug-04 5:54 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft26-Aug-04 6:10
AssemblySoft26-Aug-04 6:10 
GeneralRe: C++ Class using STL - File IO Pin
Todd Smith7-Sep-04 12:18
Todd Smith7-Sep-04 12:18 
GeneralRe: C++ Class using STL - File IO Pin
AssemblySoft7-Sep-04 23:28
AssemblySoft7-Sep-04 23:28 
Generalcreate client side cookie from .exe (atl code) Pin
sas222225-Aug-04 10:35
sas222225-Aug-04 10:35 
GeneralRe: create client side cookie from .exe (atl code) Pin
Michael Dunn25-Aug-04 10:55
sitebuilderMichael Dunn25-Aug-04 10:55 
GeneralRe: create client side cookie from .exe (atl code) Pin
sas222225-Aug-04 11:00
sas222225-Aug-04 11:00 

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.