Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NetUIHWND and DirectUIHWND [closed]

Using Spy++ tool, it seems that some Microsoft apps use NetUIHWND and DirectUIHWND window classes; e.g.: Word 2010's ribbon seems to be a NetUIHWND, instead Windows Live Messenger window seems to be a DirectUIHWND.

These window classes seem to host kind of cool graphics (with shadows, gradients, etc.); is it possible to use these window classes in our own Win32 C++ apps? Is there any documentation about them?

like image 364
EmbeddedProg Avatar asked Nov 03 '10 16:11

EmbeddedProg


3 Answers

Yes, it has been around for a while already. But it gets especially a lots of usage in Windows7. Unfortunately, they keep this one to themselves, it is undocumented. You can try to reverse-engineer it, use a ListView as a guide to what it might do. But your code will almost certainly break in the next version of Windows. Which I think was the point of not documenting it, they need something they don't have to keep backwards compatible to be able to improve the look-and-feel of the operating system.

like image 57
Hans Passant Avatar answered Nov 12 '22 18:11

Hans Passant


NetUIHWND and DirectUIHWND are the Win32 class types for different GUI toolsets. From Win32 perspective they are a self drawn panel.

So you wouldn't use these classes directly, you would use the other GUI toolsets to build the UI.

like image 20
Greg Domjan Avatar answered Nov 12 '22 18:11

Greg Domjan


Not sure about the Messenger UI, but you can use the ribbon control in your own apps.

  • On WTL: http://www.codeproject.com/KB/vista/RibbonUI.aspx
  • On MFC: http://msdn.microsoft.com/en-us/library/bb983906.aspx
like image 20
Tim Robinson Avatar answered Nov 12 '22 17:11

Tim Robinson