Can WM_NCPAINT message be overridden to give the change the window border color\hollow ?
There are possibilities described in the msdn forum, but you will have to adapt C# code :
Careful, though. Windows 10 has a different window design which rendition may get in the way.
Thanks, I had read them already. I don’t no much about C# :(. After playing with MS Office 2013 I realized that’s how they’ve done it because the mouse cursor changes to a the re-size arrow before it actually hits the window. They’ve also included a lot of cWindows according spy++ but I don’t really care about them.
The Windows Functionality Suite has code in it for showing you how to handle certain messages in a custom way
Its on github
[quote=139166:@Norman Palardy]The Windows Functionality Suite has code in it for showing you how to handle certain messages in a custom way
Its on github[/quote]
I could not locate WM_NCPaint in WFS
I could not find any example in VB, which declares are often close enough to Xojo to be easy to adapt. I even found a post in the msdn VB forum which says it is impossible in VB.
I am afraid not to be knowledgeable enough in C# to assist in any way.
Another possibility is to use a plain box window and draw the window bar. It may be possible to obtain some degree of transparency with the code of the custom shape window in the Xojo platform specific Windows example.
[quote=139169:@Michel Bujardet]I could not locate WM_NCPaint in WFS
No you won’t
You register for the message and I doubt every message id is in there
I found this from VB6 http://www.vb-helper.com/howto_shaded_titlebar.html
I can do it myself with a plain box without the 4 pixel transparent border (which I have), it’s just not quite as elegant because of all the system graphics when you move windows to areas of the screen.
[quote=139177:@Jym Morton]I found this from VB6 http://www.vb-helper.com/howto_shaded_titlebar.html
That is exactly what you need. Adapting to Xojo is very easy from VB6.
And of course I can’t get a version of VB6 to work on my computer to look at the whole program