Results 1 to 2 of 2

Thread: Message Boxs

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Posts
    60

    Message Boxs

    is it possible to create your own button captions for messageboxs instead of MB_OK "Ok" create MB_DOH "Doh" just as an example
    What is Life? One big dream or one Big nightmere.

  2. #2
    Megatron
    Guest
    Yes...But it involves subclassing and hooks. Because MessageBoxes are created dynamically, you need to install a hook to catch the WM_CREATE message (to get the handle of the messagebox) then subclass it. Sending the WM_SETTEXT message will allow you to change the text.

    I'll see if I can write up some code for you.

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