|
-
Sep 20th, 2002, 12:02 AM
#1
Thread Starter
Lively Member
-
Sep 20th, 2002, 01:23 AM
#2
PowerPoster
I think it is not possible, but you never know it just might be possible using all those api calls. Anyway, you always have the option of creating your own msgbox.
-
Sep 20th, 2002, 04:52 AM
#3
Frenzied Member
I'm pretty sure you can do it, as I saw a submission on planet source code once that changed the text in the buttons on an MSGBOX. And the guy said that if you changed his code a little you could add things like checkboxes. It would probably be pretty hard though.
-
Sep 20th, 2002, 05:25 AM
#4
Frenzied Member
In VB it is easier (by a factor of 100) to make your own form that looks like a message box but has a checkbox as well. You can use the API calls DrawIcon and GetStockObject to draw the messagebox icons.
VB Code:
Declare Function DrawIcon Lib "user32" Alias "DrawIcon" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal hIcon As Long) As Long
Declare Function GetStockObject Lib "gdi32" Alias "GetStockObject" (ByVal nIndex As Long) As Long
Public Enum IconTypes
IDI_APPLICATION = 32512&
IDI_ASTERISK = 32516&
IDI_EXCLAMATION = 32515&
IDI_HAND = 32513&
IDI_QUESTION = 32514&
End Enum
HTH,
Duncan
-
Sep 20th, 2002, 05:36 AM
#5
PowerPoster
Originally posted by Rick Bull
I'm pretty sure you can do it, as I saw a submission on planet source code once that changed the text in the buttons on an MSGBOX. And the guy said that if you changed his code a little you could add things like checkboxes. It would probably be pretty hard though.
Can you post the link to the PSC? I know you can change the font of a MessageBox, but including a checkbox would mean loading the checkbox, then re-assigning its parent to messagebox. Ther in lies the problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|