Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Message box dll

Author
Message
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 9th Sep 2004 22:37
I know Exeat and TCA have one (That I'll try when i get home tonight) but is there a way to make a message box, and then make it able for me to pick the button names? Instead of ok, cancel, etc. I want some things custom to my game.

[url='http://www.ufanz.com/teams/tracking.asp?ti=689&mi=97723][/url]
CattleRustler
Retired Moderator
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 9th Sep 2004 22:50
Those button names (and the underlying enumerated constants) are set by the windows dll the msgbox comes from and I dont think you can change them. Youd have to make a custom form that mimics a msgbox to customize it like that. Not sure if you could use RobK's blue stuff for that, or make your own dll.


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 9th Sep 2004 23:48 Edited at: 9th Sep 2004 23:51
I have 2 DLL's that do that lol!

And yes I believe what you want to do is quite possible using the Windows API, you could easily use 'FindWindow' to get the hWnd of the button and then use 'SetWindowLong' to give it a new caption.

I'm literally leaving in like 30 seconds though, so I'll have to post some DBP code to do it tommorrow.


"Computers are useless they can only give you answers."
CattleRustler
Retired Moderator
20
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 10th Sep 2004 00:31
well, there ya go - sounds like a lot of messy api stuff just for a message box - but there ya go.


DBP_NETLIB_v1.4.3 DarkTOPIA site coming soon!
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 10th Sep 2004 08:59
Thanks, I would really like this, I'll talk to you on MSn Exeat.

Also, this is for DBCe, just so you know

[url='http://www.ufanz.com/teams/tracking.asp?ti=689&mi=97723][/url]
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 10th Sep 2004 15:35 Edited at: 10th Sep 2004 17:16
Well as long as the 'Load DLL' and 'Call DLL' commands work the same, it should work. I don't have DBC Enhanced so I won't be able to test it myself, hopefully it should convert easily though.

(Should have a sample ready in the next hour or so lol)

Edit: I take that back, I've hit one road block heh, I forgot that if you call a MessageBox, it will consequently halt your program and prevent it from calling the next line of code. Guess it's time for some multithreading! (Hope it works lol)


"Computers are useless they can only give you answers."
Mattman
20
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Sep 2004 00:59
Just some exampls calls would help, I think I could get it from there. Catch you on MSN soon?

[url='http://www.ufanz.com/teams/tracking.asp?ti=689&mi=97723][/url]

Login to post a reply

Server time is: 2024-04-18 04:33:17
Your offset time is: 2024-04-18 04:33:17