Shoutbox

Look of MSN and PLUS and Visual Basic - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: Look of MSN and PLUS and Visual Basic (/showthread.php?tid=62017)

Look of MSN and PLUS and Visual Basic by AceOfSpades on 06-29-2006 at 01:27 PM

This isnt really a problem, but im just intrested in the look of MSN 8 and PLUS. I am wondering how i can get my forms (windows) to look like this in Visual Basic 6?


RE: Look of MSN and PLUS and Visual Basic by RaceProUK on 06-29-2006 at 03:25 PM

With great difficulty. VB doesn't offer the developer a lot of options for owner-draw windows.

Owner-draw windows are used to allow the developer to control how a window is drawn onto the screen. In C++, this is easy, as you can define a control with an *_OWNERDRAW style, and then intercept the WM_PAINT (windows)/WM_DRAWITEM (dialogs) message. Plus! uses this technique (all its windows are dialogs); however, Messenger I believe uses a different method, with a markup language called XAML. This is displayed in a DirectUIHWND, as will be shown if you use Spy++ on a Messenger window.

So, you have a couple of options:
1. Find a way to use *_OWNERDRAW styles in VB.
2. Use the DirectUIHWND and XAML.

MSDN should be able to help, as will Google ;)