Results 1 to 5 of 5

Thread: menu

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    menu

    where (in code) would i put lines that would allow me to put a custom background to a menu? what about if i want to change the border of that menus? is that possible? thanks...i just need to know where i would put
    thx
    Amon Ra
    The Power of Learning.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Sorry, I don't think there is a way to retrieve the window handle of the menu (if there is one). MAYBE with a combination of GetMenuRect and ChildWindowFromPoint, but I don't think so.
    You could change the system colors to change the background color of a menu but that would apply to ALL programs (and is therefore bad manner).
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500
    isn`t there a way to set a background bitmap for the menus though? because i can get the dc of the menu in the drawitemstruct or something, right? isn't there a was to put a bitmap on that dc?
    thanks
    Amon Ra
    The Power of Learning.

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    no, the drawitemstruct is only for single items, not the whole menu
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    but I wonder what happens when you call WindowFromDC with this dc...
    then GetDC
    then...
    SelectObject(HBITMAP) or maybe DrawState...
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width