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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

Morozov Alexey

@Morozov Alexey
About
Posts
13
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Multithread question repost......
    M Morozov Alexey

    There are many issuies when you're useing multithreading regarding of your question about simultaneous access to data and whether or not you may call SuspendThread(). You should read at least MSDN topics about CriticalSection usage, about functions WaitForSingleObject/WaitForMultipleObjects and some related topics. Good luck :)

    C / C++ / MFC question algorithms help tutorial career

  • Suppress user input
    M Morozov Alexey

    You can directly dequeued all of messages by function GetMessage. You should call PeekMessage and GetMessage in iteration till queue will be empty IMHO. But may be some backside will occur, I don't know

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

  • Virtual list control
    M Morozov Alexey

    I need to select first item in virtual list control (CListCtrl with LVS_OWNERDRAW style set). Is any notification handler exists that notifies then CListCtrl finished collect data? Sorry, if I confuse you with explanation Thanks in advance

    C / C++ / MFC question

  • AfxGetMainWnd() from a Worker Thread
    M Morozov Alexey

    Pass HWND of MainFrame through thread parameters and then create CWnd object by CWnd::FromHandle(HWND) function in workeer thread

    C / C++ / MFC tutorial question

  • GUI implementation
    M Morozov Alexey

    Thanks a lot :) I'll be searching more carefully in future. Shit, why did I can't find it myself :) It's really what I need.

    C / C++ / MFC c++ algorithms

  • Multi-threading
    M Morozov Alexey

    All threads in MFC has own CWnd-HWND map and it don't initialize while you create new thread due to perfomance reason. A common solution is to put HWND in thread-parameters and in child thread should construct CWnd by means CWnd::FromHandle function. Good luck

    C / C++ / MFC help question announcement

  • GUI implementation
    M Morozov Alexey

    You're about right :) It's no so hard, but I thought that building new thread, organizing some kind of inter-thread sinchronization is too big to doing such small task. Besides really I have had separate thread that perform that task already. But it's so bulky :( That why I decided to ask simplier solution.

    C / C++ / MFC c++ algorithms

  • GUI implementation
    M Morozov Alexey

    Thanks but I can't understand how can I implement it in MFC way. Would you mind show me the way :) My task is first ie I want to operate own data Thanks in advance

    C / C++ / MFC c++ algorithms

  • CWnd to CView
    M Morozov Alexey

    IMHO it handles WM_SIZE message and resize control accordingly

    C / C++ / MFC tutorial question

  • GUI implementation
    M Morozov Alexey

    I have standart generated by ClassWizard SDI MFC-app. I want that some operation invoked by user that may be performed a while was displayed like dialog with progress bar and "Cancel" button. And while it's displaying, operation should performs, progress bar should displays appropriate value and so on till operation has been completed or user has clicked "Cancel" What's the easiest way to implement that. After searching through MSDN some implementation approach has appeared but it's so difficult. Thanks in advance.

    C / C++ / MFC c++ algorithms

  • Interprocess interacting
    M Morozov Alexey

    I see :) But I didn't find any answer to my question there. I need not WinNT with GUI interface, in contrary I need TWO processes. First one is a WinNT service and second one is a GUI program to manage first. Also this interacting should be double sided in order to service was be able to notify GUI program about its state. Sorry if I can mistake but I've really find not answer in topic being advised. Sorry again if I am silly :) At such case give me exact link please. Thanks (and sorry) in advance ;)

    C / C++ / MFC sysadmin help question

  • Interprocess interacting
    M Morozov Alexey

    ?:confused:

    C / C++ / MFC sysadmin help question

  • CTreeCtrl right mouse click handling :(
    M Morozov Alexey

    Thanks a lot. It really gave me a good idea. But look at this code: void CLeftView::OnRclick(NMHDR* pNMHDR, LRESULT* pResult) { unsigned char *p = (unsigned char*) pNMHDR; p -= 4; // !!!!!!!!!!!!! NMTREEVIEW *z = (NMTREEVIEW*) p; CPoint ptXY = z->ptDrag; } It works too!!! ptXY after all of these manipulations is a real mouse coordinates X|

    C / C++ / MFC help data-structures
  • Login

  • Don't have an account? Register

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