Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

How can I Owner drawn ScrollBar?

I need Change scroll bar appearance. PLS HELP ME!
0
xialm
Asked:
xialm
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
create a CScrollBar derived class using the wizard and override WM_DRAWITEM of your CScrollBar class:

void CMyScrollBar::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
{
//your code goes here
     
     CScrollBar::OnDrawItem(nIDCtl, lpDrawItemStruct);
}
0
 
NickAtBOMCommented:
I agree with sedwick, although if you are completly drawing the scroll bar yourself, there is no need to call CScrollBar::OnDrawItem
0
 
SteveGTRCommented:
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now