Technical Details

CExtBox installs a hook procedure, calls MessageBoxIndirect, and customizes the modal dialog. The implementation is thread-safe—I use Andrew Nosenko's small CAuxThunk to give the hook and the subclassed window procedure access to the object pointer ("this") by putting the value of the pointer in the ECX register, and simply jumping to the (non-static) member function's code. So, CExtBox works without using static (or global) data such as static pointer, pointer maps, and so on.

How to display a 48*48 icon?

Hi, could you please tell me what is the secret to display a 48*48 icon on dialogbox, I have try to find it in your codes but cannot. It seems that the default size of icon in MessageBox is always 32*32.
thanks!!!

Great stuff. and lets ignore idiots

First of all this is very nice stuff. Especially that author used plain WinApi, so not only MFC people can use it. I personally prefer Borland c++ builder, so all the stuff that uses MFC is haarder for me to use, cause I need to cut off the MFC part.

Author thanks a lot, for handy stuff.

What I do regret is that some idiot, yeah idiot wrote stupid comment about authors skills of writing code. He didnt give any specific comment aabout what bothered, instead he made fool of himself.