How to remove default icon in caption of MessageBox
-
Hi , I am using MessageBox function as MessageBox(NULL,L"Please start application ",L"Test",MB_OK |MB_SYSTEMMODAL); I want to show this message box always on top so that user have to close it first. When I use MB_SYSTEMMODAL to make it modal message,default blank icon is added into messageBox caption. I want to messageBox as modal but without icon in caption. Is there any way to do this.? Thanks ABM
-
Hi , I am using MessageBox function as MessageBox(NULL,L"Please start application ",L"Test",MB_OK |MB_SYSTEMMODAL); I want to show this message box always on top so that user have to close it first. When I use MB_SYSTEMMODAL to make it modal message,default blank icon is added into messageBox caption. I want to messageBox as modal but without icon in caption. Is there any way to do this.? Thanks ABM
Please try this.. MessageBox(L"Please start application ",L"Test",MB_OK |MB_APPLMODAL); :)
-
Please try this.. MessageBox(L"Please start application ",L"Test",MB_OK |MB_APPLMODAL); :)
-
Hi , I am using MessageBox function as MessageBox(NULL,L"Please start application ",L"Test",MB_OK |MB_SYSTEMMODAL); I want to show this message box always on top so that user have to close it first. When I use MB_SYSTEMMODAL to make it modal message,default blank icon is added into messageBox caption. I want to messageBox as modal but without icon in caption. Is there any way to do this.? Thanks ABM
Hope this one will help
MessageBox(NULL,L"Please start application ",L"Test",MB_OK |MB_TOPMOST);
MB_TOPMOST : Creates the message box with the WS_EX_TOPMOST window style.
-
Hope this one will help
MessageBox(NULL,L"Please start application ",L"Test",MB_OK |MB_TOPMOST);
MB_TOPMOST : Creates the message box with the WS_EX_TOPMOST window style.
yes Mohan, your code seems working.. :)
-
yes Mohan, your code seems working.. :)
:thumbsup:
-
:thumbsup:
-
Hi Mohan, MB_TOPMOST property is ignored by vista. It is working fine on Windows XP,but not on Vista.
hi am, I tested the code MessageBox(L"Please start application ",L"Test",MB_OK |MB_TOPMOST|MB_APPLMODAL); on windows 7. Its working fine for me. If the above code is also not working for you, then create your own message box, by specifyng the Window Styles in CreateWindow() :)
-
Hi Mohan, MB_TOPMOST property is ignored by vista. It is working fine on Windows XP,but not on Vista.
am 2009 wrote:
MB_TOPMOST property is ignored by vista. It is working fine on Windows XP,but not on Vista.
I am using Vista and it's working fine.