Thread: how can i get push buttons to look nice?

  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    54

    how can i get push buttons to look nice?

    how can i get a button to look nice, like a vista button for example

    When i do this in WM_CREATE the button i get on the form looks like it's from windows 95..


    Code:
         hwndButton = CreateWindow ( TEXT("button"), 
                                       TEXT ("Pig"),
                                       WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
                                       1070,120,
                                       150, 30,
                                       hwnd, 
                                       (HMENU) 1,  // id cast to a hmenu
                                       ((LPCREATESTRUCT) lParam)->hInstance, 
                                                NULL) ;

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It's not how you create it, it's how you link your application. You need a manifest. There should be plenty of examples on msdn about manifests.

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    54
    ok, thanks, i will look manifests up

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. swapping pointers
    By csvraju in forum C Programming
    Replies: 17
    Last Post: 04-01-2009, 03:18 AM
  2. Help calling function is asm
    By brietje698 in forum C++ Programming
    Replies: 24
    Last Post: 12-06-2007, 04:48 PM
  3. Inline asm
    By brietje698 in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2007, 02:54 PM
  4. Getting position from game..
    By brietje698 in forum C++ Programming
    Replies: 1
    Last Post: 10-26-2007, 12:15 PM
  5. Queues
    By ramayana in forum C Programming
    Replies: 22
    Last Post: 01-01-2006, 02:08 AM