Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 345
  • Last Modified:

Title Bar - Device Context and Override Draw.

I already have have canvas access to the title bar of my application, and i draw a bitmap here, BUT
i need to override the Close,Minimize,Maximize buttons getting drawn,
they should still be there JUST not getting drawn, i want to draw them my self.

Evt Sample code for a Full Override and custom paint would be great.

Mvh.
BrainWare
0
brainware
Asked:
brainware
  • 4
  • 3
1 Solution
 
MadshiCommented:
You could set "borderIcons:=[]" and then handle all the drawing and mouse down/move/click stuff by yourself (a lot of work)...
You could use a Form without a border and simulate the whole title bar (even more work)...

Regards, Madshi.
0
 
ZifNabCommented:
mmm, what about just drawing a filled rectangle above these cursors?
0
 
ZifNabCommented:
Hi brainware,

 why not, put bordericons to [] (like proposel of Matvey)
 and then draw all the three buttons yourself.. then with WHChitTest test if button is pushed or not

see for total source (not much). I can't explain it better.

http://www.delumpa.com/tips/forms/forms14.htm

Matvey, maybe this is what you mean, if so, you earn the points!

Regards,  Zif.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
MadshiCommented:
ZifNab, "my name is not Susan, so watch what you say...".   :-)
0
 
ZifNabCommented:
oops, sorry Madshi.... Why do you both begin with Ma? Terrible sorry...
0
 
MadshiCommented:
Doesn't matter - I will survive it (I guess)...   :-)
0
 
brainwareAuthor Commented:
The info on site helped.. but it required alot more code..
but i thank you for the help.
0
 
ZifNabCommented:
ok, sorry I wasn't more helpfull,
glad you solved it. Zif.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now