Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtScrollWnd Collapse All
Subject Author Date
David Sousa Sep 25, 2006 - 5:21 PM

Could somebody please provide a "Hello, World" type example for creating a custom control that subclasses CExtScrollWnd? For example, something that just draws a circle, and then displays the scrollbars when the dialog is resized smaller than the circle.

I know that the grid and image editor controls extend CExtScrollWnd, but wading through hundreds of lines of code to find the minimum necessary lines is proving to be a tedious task.

Thanks.

Technical Support Sep 27, 2006 - 12:17 PM

Here is a simple CExtScrollWnd-based project. The CChildView class in it is what you need to start developing your scrollable windows.

Here is a more complex example which implements a scrollable window based on a floating point coordinate space with normalized regions between 0.0 and 1.0 plus simple graph control with editing and scaling: