flat menu problem

This is a discussion on flat menu problem within the Windows Programming forums, part of the Platform Specific Boards category; I'm trying to remove the 3d border from a windows popup menu and replace it with a simple 'flat' border ...

  1. #1
    Dump Truck Internet valis's Avatar
    Join Date
    Jul 2005
    Posts
    357

    flat menu problem

    I'm trying to remove the 3d border from a windows popup menu and replace it with a simple 'flat' border (like ws_border). Whenever I try to set WS_BORDER and remove all styles and ex styles that would create a 3d border it doesn't work.
    I have now subclassed the window so I can paint it myself, but when I call the old window proc I get a stack overflow.
    Code:
    ...
    lpfnMainMenuWndProc = (WNDPROC) SetWindowLong ( hMenuWnd, GWL_WNDPROC, (DWORD) MainMenuWndProc ) ;
    ...
    LRESULT CALLBACK MainMenuWndProc ( ... )
    {
    ...
        return ( CallWindowProc ( lpfnMainMenuWndProc, hWnd, uMsg, wParam, lParam ) ) ;
    }
    Am I trying to make a flat border the wrong way?

    Thanks
    Last edited by valis; 07-11-2005 at 06:52 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 03:51 PM
  2. Simple Menu Problem
    By DanC in forum C++ Programming
    Replies: 4
    Last Post: 03-15-2006, 01:33 PM
  3. Problem with Mouse Over Menu!!! HELP!!!
    By SweeLeen in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2006, 02:10 AM
  4. Window - Menu problem...
    By FromHolland in forum Windows Programming
    Replies: 1
    Last Post: 02-26-2004, 03:49 PM
  5. MDI and MENU Problem
    By Marc in forum Windows Programming
    Replies: 3
    Last Post: 02-21-2004, 06:59 PM

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