[ winapi ] Direct2D and scrollbar control and GUI questions

  • Thread starter Thread starter Striebrovlas
  • Start date Start date
S

Striebrovlas

Guest
I have idea create GUI with direct2d. As I looked at documentation about direct2d and winapi, I discover similarities with WPF. My idea is subclass window controls (buttons, scrollbar, listbox etc...) and paint it with direct2d like vector graphics in WPF. But I can't find info, how to do that.

For example it is very simple to change button with WM_PAINT, because button is very simple component. But scrollbar contains buttons, thumbs and area where is content. If I edit control in WPF designer (Blend) scrollbar I get each object and can apply / change style for each component in scrollbar. In winapi I can't find any info about that. I have several ideas how to do that, one of them is create own scrollbar control with composed subclassed button with own draw and other controls (content area and layout) created by me. Or did it everything in Direct2D?


My second question is about GUI in Direct2d. As I read documentation about window and controls, I get Idea subclass each control and replace their draw / paint with Direct2d. I think this is how WPF is created. Is it a good idea? Or it is better everything draw in to one window with Direct2D and not use controls?

Continue reading...
 
Back
Top