i meant that if i SetCapture in CButton-derived control and in its WM_MOUSEMOVE message handler call ::SetCursorPos, will this control receive MW_MOUSEMOVE again? nobody is perfect
mishgun
Posts
-
SetCursorPos and WM_MOUSEMOVE -
SetCursorPos and WM_MOUSEMOVEwhat about SetCapture? nobody is perfect
-
SetCursorPos and WM_MOUSEMOVEhello. i have overriden WindowProc for CButton-derived control and handle WM_MOUSEMOVE message in message handler i call ::SetCursorPos all i want to know is: does ::SetCursorPos function send WM_MOUSEMOVE message or not? thanks in advance nobody is perfect
-
handlin WM_KILLFOCUS in CWnd-derivedhi! i've encountered serious problem, which couldnt solve for hours. i've got a couple of views splitted by CSplitterWnd in one of this views (ParentView) i dynamically create CWnd-derived object (SpinEdit) that holds CEdit and CSpinButtonCtrl (analogously to CInPlaceEdit by Chris Maunder). the problem is: i cant handle WM_KILLFOCUS message in SpinEdit window. Spy++ shows that this message isnt sent to SpinEdit window than user clicks mouse button on ParentView. maybe problem is in ParentView? it is completely owner drawn and has no more child-controls except this dynamically created SpinEdit. any help will be greatly appreciated nobody is perfect
-
HHHHEEEEELLLLPPPPPP!!!in VC++ 6 I've used vector of vectors (and even more!), like this: #typedef std::vector StringVector; #typedef std::vector StringMatrix; and it works :) nobody is perfect
-
Hiding vertical scrollbar in CListCtrlI need to hide only vertical scrollbar, horizontal should stay as is nobody is perfect
-
Hiding vertical scrollbar in CListCtrlI want to hide vertical scroll bar in CListCtrl derived class I tried this code in PreCreateWindow: DWORD dwStyle = cs.style; if(dwStyle & WS_VSCROLL) { dwStyle &= ~WS_VSCROLL; cs.style = dwStyle; } and this in OnSize: DWORD dwStyle = ::GetWindowLong(GetSafeHwnd(), GWL_STYLE); if(dwStyle & WS_VSCROLL) { ::SetWindowLong(GetSafeHwnd(), GWL_STYLE, dwStyle & (~WS_VSCROLL)); } but it doesnt work, I still have scrollbar any suggestions? thankx in advance nobody is perfect
-
different HWND, but same HDCI've got 4 views that are child windows of one view. Parent view calls children's specific method to do some drawing. And in this method different child views have different HWND, but _SAME_ HDC so drawing occurs only in 1 child view. any suggestions? thanks in advance. nobody is perfect
-
hide an item in a list viewread this article about custom draw CListCtrl http://www.codeguru.com/listview/CustomDrawListViewControls2.html[^] nobody is perfect
-
Problems with CArrayMaybe error in declaration of m_arEndPointsGroup? CArray is class template try CArray m_arEndPointsGroup nobody is perfect
-
transparent!!!you can use ExtTextOut with nOption=ETO_OPAQUE and SetBkColor(RGB(0, 0, 0)) before it nobody is perfect
-
Flickering in custom draw ListCtrldamn now i'm sure - i'm stupid :( the problem wasnt in custom draw and not in listview at all but thank you for giving me a reason to think :) nobody is perfect
-
Flickering in custom draw ListCtrlI'm drawing images and text. the problem, why i cant use standart list, is that i have to draw multiple selection in my own way. e.g. selected images should be drawn like another image etc. its not my idea, so did customer want :( nobody is perfect
-
std:stringnope :) rbegin() returns last member of container, as i understand it :))) nobody is perfect
-
Scollbox size and positionAfter changing internal scrollbar parameters (nMin, nMax, nPage) you should use MoveWindow, SetWindowPos etc. to set correct position and size of scrollbars nobody is perfect
-
DWORD to string and std::stringMaybe its not so good, but i use: char cBuf[5]; string s(itoa(dwNumber, cBuf, 10)); nobody is perfect
-
how to access bad pointers?Maybe you should derive all your classes from CObject and use IsKindOf? nobody is perfect
-
Cutout window (creating a "hole")// get screen coordinates RECT OrgRect; GetWindowRect(hWnd, &OrgRect); POINT ptLT, ptRB; ptLT.x = OrgRect.left; ptLT.y = OrgRect.top; ptRB.x = OrgRect.right; ptRB.y = OrgRect.bottom; // convert to client ScreenToClient(hWnd, &ptLT); ScreenToClient(hWnd, &ptRB); // convert from client area to entire window area ptRB.x -= ptLT.x; ptRB.y -= ptLT.y; ptLT.x -= ptLT.x; ptLT.y -= ptLT.y; // create new region for window HRGN hNewRgn = CreateRectRgn(ptLT.x, ptLT.y, ptRB.x, ptRB.y); // "hole" region HRGN hRectRgn = CreateRectRgn(ptLT.x+50, ptLT.y+50, ptRB.x-50, ptRB.y-50); // combine them HRGN hResultRgn = CreateRectRgn(0, 0, 0, 0); CombineRgn(hResultRgn, hNewRgn, hRectRgn, RGN_DIFF); SetWindowRgn(hWnd, hResultRgn, TRUE); this one works for sure can send you a demo project nobody is perfect
-
Keeping the values in controls when closing and opening a Dialogmaybe you should use GetCurSel before destructing CDialog object and SetCurSel after creating CDialog again? nobody is perfect
-
std:string*mystring.rbegin() = '.'; it works :) nobody is perfect