how can i get push buttons to look nice?

This is a discussion on how can i get push buttons to look nice? within the Windows Programming forums, part of the Platform Specific Boards category; how can i get a button to look nice, like a vista button for example When i do this in ...

  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をこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,536
    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, 03:48 PM
  3. Inline asm
    By brietje698 in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2007, 01: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, 01:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21