Thread: Button positioning

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Registered User
    Join Date
    May 2005
    Posts
    207
    Oh wow! That was SO EASY! Thanks!

    So all I had to do was move the "Create Window" command to my WinMain area.

    How do I tell what code I can put in the WinMain function and what I must put in the window procedure? I thought WinMain was where you declared the initial window, but then you had to put everything that deals with the window in the windows procedure...

    For instance:

    I tried to put my CreateWindow (for my button) in WM_PAINT. I figured that since I'm using GetClientRect there already I may as well do my buttons too. You can probably imagine what happened...

    mw
    Last edited by Lionmane; 10-09-2005 at 10:41 PM.
    Blucast Corporation

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 06-28-2008, 08:30 PM
  2. elliptical button
    By geek@02 in forum Windows Programming
    Replies: 0
    Last Post: 11-21-2006, 02:15 AM
  3. Remove dialog button border
    By RedZone in forum Windows Programming
    Replies: 4
    Last Post: 08-21-2006, 01:20 PM
  4. writing text over a deleted button
    By algi in forum Windows Programming
    Replies: 4
    Last Post: 05-02-2005, 11:32 AM
  5. Window won't display on button command!?
    By psychopath in forum Windows Programming
    Replies: 6
    Last Post: 06-22-2004, 08:12 PM