Hide/Remove the Application Icon in the Title bar icon for a dialog with Border - Resizing.
-
Hi All, I have a new dialog based project, in which for the dialog I have set the following resizing property - Style: Popup Border: Resizing. Now when I execute the application, I dont want the application icon to be displayed in the Title bar of the Dialog. Can you tell me how to remove that icon? Thanks.
Priya Sundar
-
Hi All, I have a new dialog based project, in which for the dialog I have set the following resizing property - Style: Popup Border: Resizing. Now when I execute the application, I dont want the application icon to be displayed in the Title bar of the Dialog. Can you tell me how to remove that icon? Thanks.
Priya Sundar
Priya_Sundar wrote:
Now when I execute the application, I dont want the application icon to be displayed in the Title bar of the Dialog.
Remove
SetIcon
calls fromOnInitDialog
. And at any time to remove icon from a window callSetIcon
with a NULL icon handle.SetIcon( NULL, true ); // Remove big icon
SetIcon( NULL, false ); // Remove small iconNibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
Priya_Sundar wrote:
Now when I execute the application, I dont want the application icon to be displayed in the Title bar of the Dialog.
Remove
SetIcon
calls fromOnInitDialog
. And at any time to remove icon from a window callSetIcon
with a NULL icon handle.SetIcon( NULL, true ); // Remove big icon
SetIcon( NULL, false ); // Remove small iconNibu babu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
This way if i set to NULL, i get a blank command icon displayed in the Title of the dialog. However, in the taskbar still the icon is present. I dont want the icon or even like a blank command type of icon displayed on the Dialog title. So please suggest some other way.
Priya Sundar
-
Hi All, I have a new dialog based project, in which for the dialog I have set the following resizing property - Style: Popup Border: Resizing. Now when I execute the application, I dont want the application icon to be displayed in the Title bar of the Dialog. Can you tell me how to remove that icon? Thanks.
Priya Sundar
-
Hello, i did not try, but putting a transparent icon (only transparent background) which has nothing on it may solve your problem :). Bekir.
Good suggestion! Thanks. But in this case I need to allign the title bar text to the right of the dialog. I am not sure how to do this! Any suggestion for this?
Priya Sundar
-
Good suggestion! Thanks. But in this case I need to allign the title bar text to the right of the dialog. I am not sure how to do this! Any suggestion for this?
Priya Sundar