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. How to Remove TitleIcon for CDialog if border is Resized VC++

How to Remove TitleIcon for CDialog if border is Resized VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
5 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.
  • J Offline
    J Offline
    janaswamy uday
    wrote on last edited by
    #1

    Hi all, I have changed the CDialog properties. In CDialog i have changed Border syle as "Resizing" from "Dialog Frame". If i changed this Property, An Icon is been displayed in the Dialog. I dont want to have an extra Icon in the Dialog TitleBar. What should i do. I tried with SetIcon(NULL,TRUE) //remove the ICON from TitleBar when changing the Border Style. Thanks & Regards uday.

    C K 2 Replies Last reply
    0
    • J janaswamy uday

      Hi all, I have changed the CDialog properties. In CDialog i have changed Border syle as "Resizing" from "Dialog Frame". If i changed this Property, An Icon is been displayed in the Dialog. I dont want to have an extra Icon in the Dialog TitleBar. What should i do. I tried with SetIcon(NULL,TRUE) //remove the ICON from TitleBar when changing the Border Style. Thanks & Regards uday.

      C Offline
      C Offline
      Cool_Dev
      wrote on last edited by
      #2

      try with

      SetIcon(NULL, FALSE);
      SetIcon(NULL, TRUE);

      J 1 Reply Last reply
      0
      • C Cool_Dev

        try with

        SetIcon(NULL, FALSE);
        SetIcon(NULL, TRUE);

        J Offline
        J Offline
        janaswamy uday
        wrote on last edited by
        #3

        Hi Dev, As you given a solution SetIcon(NULL, FALSE); SetIcon(NULL, TRUE); For both Big ICON and Small ICON. I am still able to see an Empty White ICON. Any suggestions please. Thanks & Regards, Uday.

        C 1 Reply Last reply
        0
        • J janaswamy uday

          Hi Dev, As you given a solution SetIcon(NULL, FALSE); SetIcon(NULL, TRUE); For both Big ICON and Small ICON. I am still able to see an Empty White ICON. Any suggestions please. Thanks & Regards, Uday.

          C Offline
          C Offline
          Cool_Dev
          wrote on last edited by
          #4

          yes.. i apologize, for a resizing dialog box, it shows a white icon, whenever the system menu property of dialog box is true. What about loading a complete transparent icon and set it as dialog icon? :) Others may have solid solutions to give you..

          1 Reply Last reply
          0
          • J janaswamy uday

            Hi all, I have changed the CDialog properties. In CDialog i have changed Border syle as "Resizing" from "Dialog Frame". If i changed this Property, An Icon is been displayed in the Dialog. I dont want to have an extra Icon in the Dialog TitleBar. What should i do. I tried with SetIcon(NULL,TRUE) //remove the ICON from TitleBar when changing the Border Style. Thanks & Regards uday.

            K Offline
            K Offline
            KingsGambit
            wrote on last edited by
            #5

            It seems the icon is displayed because of WS_SYSMENU style. So, one option would be to disable System Menu style.

            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