adding button to dialog titlebar
-
Hi there' how can I add buttons to dialog titlebar? I want to create my own buttons aside to min/max. thanks Yaniv :confused:
-
Hi there' how can I add buttons to dialog titlebar? I want to create my own buttons aside to min/max. thanks Yaniv :confused:
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.