Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

mishgun

@mishgun
About
Posts
22
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SetCursorPos and WM_MOUSEMOVE
    M mishgun

    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

    C / C++ / MFC question

  • SetCursorPos and WM_MOUSEMOVE
    M mishgun

    what about SetCapture? nobody is perfect

    C / C++ / MFC question

  • SetCursorPos and WM_MOUSEMOVE
    M mishgun

    hello. 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

    C / C++ / MFC question

  • handlin WM_KILLFOCUS in CWnd-derived
    M mishgun

    hi! 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

    C / C++ / MFC help question

  • HHHHEEEEELLLLPPPPPP!!!
    M mishgun

    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

    C / C++ / MFC c++ data-structures question

  • Hiding vertical scrollbar in CListCtrl
    M mishgun

    I need to hide only vertical scrollbar, horizontal should stay as is nobody is perfect

    C / C++ / MFC question

  • Hiding vertical scrollbar in CListCtrl
    M mishgun

    I 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

    C / C++ / MFC question

  • different HWND, but same HDC
    M mishgun

    I'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

    C / C++ / MFC graphics question

  • hide an item in a list view
    M mishgun

    read this article about custom draw CListCtrl http://www.codeguru.com/listview/CustomDrawListViewControls2.html[^] nobody is perfect

    C / C++ / MFC graphics help tutorial question

  • Problems with CArray
    M mishgun

    Maybe error in declaration of m_arEndPointsGroup? CArray is class template try CArray m_arEndPointsGroup nobody is perfect

    C / C++ / MFC help question

  • transparent!!!
    M mishgun

    you can use ExtTextOut with nOption=ETO_OPAQUE and SetBkColor(RGB(0, 0, 0)) before it nobody is perfect

    C / C++ / MFC tutorial

  • Flickering in custom draw ListCtrl
    M mishgun

    damn 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

    C / C++ / MFC question graphics performance help

  • Flickering in custom draw ListCtrl
    M mishgun

    I'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

    C / C++ / MFC question graphics performance help

  • std:string
    M mishgun

    nope :) rbegin() returns last member of container, as i understand it :))) nobody is perfect

    C / C++ / MFC question tutorial

  • Scollbox size and position
    M mishgun

    After changing internal scrollbar parameters (nMin, nMax, nPage) you should use MoveWindow, SetWindowPos etc. to set correct position and size of scrollbars nobody is perfect

    C / C++ / MFC question css help

  • DWORD to string and std::string
    M mishgun

    Maybe its not so good, but i use: char cBuf[5]; string s(itoa(dwNumber, cBuf, 10)); nobody is perfect

    C / C++ / MFC tutorial question

  • how to access bad pointers?
    M mishgun

    Maybe you should derive all your classes from CObject and use IsKindOf? nobody is perfect

    C / C++ / MFC database tutorial question

  • Cutout window (creating a "hole")
    M mishgun

    // 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

    C / C++ / MFC json question

  • Keeping the values in controls when closing and opening a Dialog
    M mishgun

    maybe you should use GetCurSel before destructing CDialog object and SetCurSel after creating CDialog again? nobody is perfect

    C / C++ / MFC question

  • std:string
    M mishgun

    *mystring.rbegin() = '.'; it works :) nobody is perfect

    C / C++ / MFC question tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups