-
October 9th, 2013, 08:01 AM
#1
Wm_vscroll
Hi,
I have a class derived from CStatic.
Also two ScrollBar,
CScrollBar m_HScroll;
CScrollBar m_VScroll;
created equals
m_HScroll.Create(SBS_HORZ | SBS_BOTTOMALIGN |WS_CHILD , rect, father, 1100);
m_HScroll.EnableScrollBarCtrl(SB_HORZ );
m_VScroll.Create(SBS_VERT | SBS_RIGHTALIGN |WS_CHILD, rect, father, 1200);
m_VScroll.EnableScrollBarCtrl(SB_VERT );
int the message map
BEGIN_MESSAGE_MAP(CDrawBitmap, CStatic)
ON_WM_VSCROLL()
ON_WM_HSCROLL()
END_MESSAGE_MAP()
...the problem is that the window doesn't receive the message relative to the vscroll, only relative to the hscroll.
I don't understand what is wrong with the vertical scrollbar...
Thank you a lot
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|