Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3670
Number of posts: 9122

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Client area vs window size... Posted by Sephiroth on 17 Jul 2001 at 11:13 AM
How can I create a client area that is larger than my window? I have a child window that takes up a small portion of my parent window, and it is created with scrollbars, but I cannot figure out how to make the client area larger. Say the window is 320x240, but I need the client area to be 800x600, how could I accomplish this?
<br>-Sephiroth

Report
Re: Client area vs window size... Posted by AsmGuru62 on 17 Jul 2001 at 1:31 PM
: How can I create a client area that is larger than my window? I have a child window that takes up a small portion of my parent window, and it is created with scrollbars, but I cannot figure out how to make the client area larger. Say the window is 320x240, but I need the client area to be 800x600, how could I accomplish this?
: -Sephiroth
:

If you look at 'OnWmPaint()' in SCROLLERS.ZIP that I have sent you recently you will see this call:

SetViewportOrgEx (hDC,
-GetScrollPos (hWnd, SB_HORZ),
-GetScrollPos (hWnd, SB_VERT),
NULL);

That is what makes the client area a viewport into a larger portion of window...




Report
Re: Client area vs window size... Posted by Sephiroth on 17 Jul 2001 at 1:34 PM
You know, I didn't have any clue as to what that did and thus hadn't messed with it, lol. Thanks Guru, I'll check out the source and my help files.


-Sephiroth





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.