Thread: Windows Graphics

  1. #1

    Windows Graphics

    I've seen programs where the border and controls on the title bar are created with graphics(one program i know is Sonique, an mp3 player). How could I go about making my own graphics classes for windows and such? Help anyone?

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Do you mean just "designing" and creating child windows? Please specify...
    1978 Silver Anniversary Corvette

  3. #3
    Registered User
    Join Date
    Dec 2001
    he's saying that he wants a window that:

    1) looks like it's been drawn completely by him (ie, not a standard window) with his own buttons in the title (if he wants a title bar at all)
    2) possible a window that isn't the normal shape (ie, not rectangular).

    you need to draw/create your own pictures onto a windows device context (that covers the whole window) if you want to have snazzy look as opposed to the standard windows look and feel.

    if you want to have a window that's a different shape, then look up window regions (HRGN), and when you've figure out how to create a region of the right shape that you want for the window, then use SetWindowRegion()

    good luck
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  4. #4
    Programming is fun, mkay?
    Join Date
    Oct 2001

    Arrow I am...

    I am doing this with my programs. I have "skinned" most of my newest ones. Just make the main window's style like this:

    // Some code
    WS_POPUP, // Window style
    // Some code

    Justmake it as themain window. Create an image for your title bar, minize, maximize, and close buttons. I might attach a pic of my program a little later


    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  3. How come this only works in Windows nt/2000?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 08-30-2002, 06:54 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. Graphics in a window in windows
    By Korn1699 in forum C++ Programming
    Replies: 2
    Last Post: 06-16-2002, 12:59 AM