Thanks a lot The way with WM_NCHITTEST handler works!
Yaumen
Posts
-
Why CButton-derived class with BS_GROUPBOX style doesn't get messages? -
Why CButton-derived class with BS_GROUPBOX style doesn't get messages?I added to .h afx_msg void OnMouseMove(UINT nFlags, CPoint point); and to .cpp ON_WM_MOUSEMOVE() ... void CMyGroupBox::OnMouseMove(UINT nFlags, CPoint point) { } That works for simple CButton-derived class but with BS_GROUPBOX style it's not work
-
Why CButton-derived class with BS_GROUPBOX style doesn't get messages?Hi I try to create my own GroupBox (CButton class with BS_GROUPBOX style) control but that class doesn't get any messages from the mouse: WM_MOUSEMOVE, WM_LBUTTONDOWN, WM_LBUTTONUP and etc. I can't understand why. Can anyone help me?
-
How to add a prefix and a postfix to CEdit-derived class?How to add a CEdit-derived class output the text/icon in the beginning and-or in the end of CEdit window. I can allocate an area for the text/icon by SetMargins method, but in what method and how is better output a text or icon not clearly. It is desirable, that other CEdit functional was not broken Similar to CEdit from Data group and MsgID groups (http://www.canusb.com/canusb_labview.jpg[^])