im creating a simple program, which consists of a single message box which i want to have the always on top feature often seen in programs like msn messenger .etc is this possible with a messagebox? and if so how?
im creating a simple program, which consists of a single message box which i want to have the always on top feature often seen in programs like msn messenger .etc is this possible with a messagebox? and if so how?
I think you must create your own dialog box or window for this, but I can be wrong.
Use this extended window style: WS_EX_TOPMOST
This results a message box with "cancel" and "help" buttons, but still doesn't make it topmost.Code:MessageBox(HWND_DESKTOP,"Text","Title",MB_OK|WS_EX_TOPMOST);
MB_TOPMOST
Code:#include <windows.h> int main() { MessageBox(HWND_DESKTOP,"Text","Title",MB_OK|MB_TOPMOST); }