visual c++ - WinAPI create metro style application issues -


i'm trying implement simple metro style window using winapi (basicly visual studio 2012 style) run on windows 7 , windows 8, know hard work , @ begin, have problems:

1. create squared window
can achieve create borderless window (mean no border, no titlebar, client area) way, can't resize window , titlebar lost of course. these ways create squared corner window , still keep titlebar (including close, max, min, ... buttons)?

2. owner draw close, maximize, minimize buttons
can owner draw whole titlebar catching wm_ncpaint event way see these buttons (close, maximize, minimize) go hell. how can show these button in way (i mean draw ideas)?

3. create shadow
can see if visual studio 2012's window not maximized, show shadow, great , want apply effect simple window. how can that?

you need write own code draws basic window elements, , handle mouse events hand make them interactive. (hooking wm_nchittest may interactivity)

to make shadow, make window layered, set background image alpha-transparent shadow.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -