The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: anuradha on June 16, 2007, 08:49:09 AM

Title: skined window
Post by: anuradha on June 16, 2007, 08:49:09 AM
hi guys
is their any api or way to create skined window????
thanks
Title: Re: skined window
Post by: gabor on June 22, 2007, 11:42:05 AM
Hello!


You mean to add a background image to a window? Or even a layout of control items?
I think the background is not very hard to add, a customizable layout is much more difficult...
The handler of the WM_PAINT message has to draw the background before any other in-front item is drawn.

There are docs, tutorials for sure, but an API, I would doubt that. But maybe I'm wrong. :)


Greets, Gábor
Title: Re: skined window
Post by: anuradha on June 25, 2007, 01:46:39 PM
hello gabor

First thanks for reply
in above question i meant custom windows like winamp, jetaudio !!
thanks
Title: Re: skined window
Post by: donkey on June 25, 2007, 01:56:58 PM
There is no specific API for skinning a window, TestDepartment had a great example of window skinning as well as NaN for skinning controls. I am afraid I don't have either of them any more but you may be able to find NaN's skinned buttons at the Win32asmcommunity. For TestDepartment, I believe that site and all it's information was lost years ago, I had a backup at one time but seem to have misplaced it.

You will need a region generator, I believe Vortex did a rather nice one though I might be wrong about the author, any way you can find several different ones with google. And will have to gain some understanding of the non-client region of a window and also be pretty good with WM_PAINT and back buffers and friends. On my website I have an example of a custom dialog caption, it introduces the APIs involved in non-client painting and can serve as a foundation for skinning.

Donkey
Title: Re: skined window
Post by: rags on June 25, 2007, 02:22:29 PM
I have the file Donkey is referring to, I could email it to you if you want me to, because it it too large to post here in one piece.
Rags
Title: Re: skined window
Post by: anuradha on June 25, 2007, 02:47:51 PM
hi
thank you all
hey rags can you send me that file
here is my email anuindika@gmail.com
thanks
Title: Re: skined window
Post by: donkey on June 25, 2007, 02:53:12 PM
You know I forgot that the win32asmcommunity had backed up all of TestDepartment's demos...

http://www.asmcommunity.net/archives/TestDepartment/

Can't seem to see the Bugs Bunny skinned window though, maybe it was someone else who did it.
Title: Re: skined window
Post by: hutch-- on June 25, 2007, 03:21:20 PM
You will also find a direct link to TD's examples on the forum web site.
https://masmforum.com/download/td_win32asm_all.zip

EDIT:
There is a New reviewed & updated version, provided by 'elC' here:
https://masmforum.com/download/td_win32asm_all_reviewed_by_elC.zip
Title: Re: skined window
Post by: ragdog on June 25, 2007, 04:01:30 PM
hi anuradha

here is a old rgn example

greets

ragdog

[attachment deleted by admin]
Title: Re: skined window
Post by: anuradha on June 25, 2007, 04:56:17 PM

once again thank you all.it was really helped
greets
anuradha :U :U :U