RE: Re[2]: [GD-Windows] Security/access when writing to registry
Brought to you by:
vexxed72
From: Andrew G. <ag...@cl...> - 2003-01-22 18:47:50
|
I think Jon exagerates a wee bit, although it's no great amount of work to come up with a replacement MessageBox which correctly sizes its self depending on the amount of text and buttons. I wonder though if it'd be possible to do something with GetClassInfo/UnRegisterClass/RegisterClass and just drop in your own WindowProc for the message box which adjusted a few things on startup and passed every call through to the real message box proc. Probabably more hassle than it's worth :) It's a real shame though that you can't specify replacement text for the default buttons, especially as you can already do something similar for the icon that's displayed. Andy @ Climax Brighton > -----Original Message----- > From: Javier Arevalo [mailto:ja...@py...] > Sent: 22 January 2003 18:33 > To: gam...@li... > Subject: Re: Re[2]: [GD-Windows] Security/access when writing to > registry > > > How would you write a wrapper like that for MessageBox? > > Jon Watte <hp...@mi...> wrote: > > I betcha could have written a wrapper in the time it took you > > to write this e-mail. The wrapper would run at dialog box init > > message processing time, and just slam the string you want > > into the buttons you care about. WM_SETTEXT, if memory serves. > > > > Cheers, > > > > / h+ > > > >> -----Original Message----- > >> From: gam...@li... > >> > [mailto:gam...@li...]On Behalf Of > >> Tom Forsyth > >> > >> > >> Sure, it just means adding it to the resources and all > that malarky. > >> Which is a huge hassle for every possible message in an > app. It would > >> be stupidly > >> helpful have a MessageBoxEx ( hWnd, "Something gnarly happened", > >> "Hey dude", > >> MB_CUSTOM3BUTTONS | MB_ICONBODACIOUS, "Groovy", "Downer", "Whoa" ); > >> > >> OK, well there already is a MessageBoxEx. Time for MessageBoxExEx. > >> > >> Sorry - I'm just wishlisting. :-) > > Javier Arevalo > Pyro Studios > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > |