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. adding button to dialog titlebar

adding button to dialog titlebar

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 Posts 2 Posters 1 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.
  • Y Offline
    Y Offline
    YanivNahum
    wrote on last edited by
    #1

    Hi there' how can I add buttons to dialog titlebar? I want to create my own buttons aside to min/max. thanks Yaniv :confused:

    R 1 Reply Last reply
    0
    • Y YanivNahum

      Hi there' how can I add buttons to dialog titlebar? I want to create my own buttons aside to min/max. thanks Yaniv :confused:

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      You have to simulate the button yourself. You cannot add a button to the non-client area. You will need to draw the button yourself, and also handle the WM_NCLBUTTONDOWN and other messages to simulate the button corretly. Its a real pain from what I hear (never done it myself). Sounds like a good idea for an article.... I may go and work out how to do it. If I get time, or you could post a solution yourself if get one that works. Roger Allen Sonork 100.10016 Death come early, death come late, It takes us all, there is no reason. For every purpose under heaven, To each a turn, to each a season. A time to weep and a time to sigh, A time to laugh and a time to cry, A time to be born and a time to die. Dust to dust and ashes to ashes, And so I end my song.

      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