Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / August 2003

Tip: Looking for answers? Try searching our database.

OnDraw again

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rufus - 28 Aug 2003 00:59 GMT
This is wierd. I have a single doc app. I create some buttons in the view
OnDraw method.

When I size my app window - the buttons disappear. But as soon as I click on
any spot inside the window or the window frame they appear.

What is going on here. I have tried everything. I have used WM_SIZE,
WM_SYSCOMMAND, WM_MOVE, pretty much anything - and the same thing happens.

Help!

Bill
insomniac - 28 Aug 2003 02:25 GMT
You need to issue OnPaint() command after you resize the
window -- to repaint the window.  By the way, what
commands are you using to resize your main app. window?

>-----Original Message-----
>This is wierd. I have a single doc app. I create some buttons in the view
[quoted text clipped - 11 lines]
>
>.
rufus - 28 Aug 2003 13:05 GMT
Tried OnPaint - no diff - I resize by using mouse - Which calls OnSize

It's wierd - everything appears as soon as I click on anything in the
window!

> You need to issue OnPaint() command after you resize the
> window -- to repaint the window.  By the way, what
[quoted text clipped - 20 lines]
> >
> >.
insomniac - 28 Aug 2003 22:38 GMT
You're better off creating a dialog as a resource, and
inserting buttons there, then manipulating them with
visible, not visible, or moving them with MoveWindow().
(Use the Class Wizard to create variables that reference
your buttons and controls).

Drawing directly to the screen, and including controls
also, will give you erratic behavior on repaint.

>-----Original Message-----
>Tried OnPaint - no diff - I resize by using mouse - Which calls OnSize
[quoted text clipped - 28 lines]
>
>.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.