Thread: program position

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    77

    program position

    how to i define a position for the program ??
    also wat does this hwnd mean ??

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    If by the position of the program you mean where the window opens to relative to the screen you define that in your call to CreateWindow/CreateWindowEx (params 4 & 5, and params 5 & 6, respectively).

    The HWND is a handle to a window. It's used to indentify a window when you need to get information from it or send information to it.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    77
    wats is the coding like ????
    can demo ?

  4. #4
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Monkeymon, you seriously have a problem with researching stuff for yourself don't you? What code would you like me to post? A call to CreateWindow? If you know how to use CreateWindow then you should know what params define the position and size of the Window.

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    77
    becoz im using MFC so i dunno how to decare the createwindowex
    sorry
    or u have any webby for mi to check out ?
    i can check it myself

  6. #6
    Unregistered
    Guest
    When you are working with Mfc there is a couple of events you can catch. Open the Wizard and scroll through the events. VC will give you a short describtion of what they do. You want an event that happens with the window is created. Create a function using the wizard and add the code to positioning the window. You can find methods for that on msdn..Search for domodal and you will get close.

  7. #7
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    The fourth parameter to the MFC windows Create() method allows you to specify the position and size of the window. Look it up in the help.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Heap Program Help
    By Rob4226 in forum C++ Programming
    Replies: 15
    Last Post: 05-02-2008, 01:23 AM
  2. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  3. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  4. Need help with my program...
    By Noah in forum C Programming
    Replies: 2
    Last Post: 03-11-2006, 07:49 PM
  5. LISP (DrScheme) any one?
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 03-31-2004, 12:52 PM