Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hide/Remove the Application Icon in the Title bar icon for a dialog with Border - Resizing.

Hide/Remove the Application Icon in the Title bar icon for a dialog with Border - Resizing.

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Priya_Sundar
    wrote on last edited by
    #1

    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

    N B 2 Replies Last reply
    0
    • P 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

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      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 from OnInitDialog. And at any time to remove icon from a window call SetIcon with a NULL icon handle.

      SetIcon( NULL, true ); // Remove big icon
      SetIcon( NULL, false ); // Remove small icon

      Nibu 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

      P 1 Reply Last reply
      0
      • N Nibu babu thomas

        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 from OnInitDialog. And at any time to remove icon from a window call SetIcon with a NULL icon handle.

        SetIcon( NULL, true ); // Remove big icon
        SetIcon( NULL, false ); // Remove small icon

        Nibu 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

        P Offline
        P Offline
        Priya_Sundar
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • P 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

          B Offline
          B Offline
          beko
          wrote on last edited by
          #4

          Hello, i did not try, but putting a transparent icon (only transparent background) which has nothing on it may solve your problem :). Bekir.

          P 1 Reply Last reply
          0
          • B beko

            Hello, i did not try, but putting a transparent icon (only transparent background) which has nothing on it may solve your problem :). Bekir.

            P Offline
            P Offline
            Priya_Sundar
            wrote on last edited by
            #5

            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

            B 1 Reply Last reply
            0
            • P 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

              B Offline
              B Offline
              beko
              wrote on last edited by
              #6

              Hello, Right click on the dialog, go to Properties then Select Right Align Text in the misc. category It does change where the title bar is located, but not sure that is exactly what you need. Hope this helps. Bekir.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups