Has anyone tried a custom windows shaped based on Mob's tute?

The exe in the tute works fine but when I try my own some of the transparent color(blue in this case) remains see attached image).

Any one know of a fix for this?
Posted on 2002-06-02 13:33:51 by MArtial_Code
it would be better to post your source I think

this is an example of custom form window I did once http://spiff.tripnet.se/~iczelion/files/Skin%20a%20Window.zip
Posted on 2002-06-02 13:44:37 by Hiroshimator
It's a straight forward cut and paste job...here's the RadASM project...
Posted on 2002-06-02 13:58:35 by MArtial_Code
I can tell you what's wrong.
The window's Client Area is not the same size as the Window.
You are using a window which has a Title Bar, right?
Well the Client Area zero is UNDER the titlebar topleft, and not the topleft of the whole window.
The skinning code uses absolute coordinates, add the height of the titlebar (25 from memory) to the skinning coordinates.
I found I could overdraw the titlebar when I used the Region example. I don't know how your source accomplishes it, I haven't looked, but it sure is different to the example in masm if it can't draw on the title bar.
Posted on 2002-06-03 01:50:58 by Homer
I found the problem...the window i was using had a menu assigned to it. Once the menu was removed all was as it should be...
Posted on 2002-06-03 05:08:15 by MArtial_Code
the cws version in hutchs masm package has a few bugs.
don't even try iczelions tute, it's full of little errors too...
i posted a new version in the algo forum a while ago and
it should work ok...

importants things are: please take care of the FIRST pixel
in your bitmap, this pixel's color is used as transparent
color. next thing that matters is the size of your bitmap,
you HAVE to adjust it in the source, thats a little bit dumb
i know but maybe i rewrite it agin some time...

go here

oh and if you mean this effect when shuffling the window
around... thats because the skin is to complex, grab
photoshop and make it a little simpler and you'll see...
(explained in this thread, too)
Posted on 2002-06-04 04:11:45 by mob