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
U

User 4487

@User 4487
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Crystal Report
    U User 4487

    Even I have used it, What is the problem ?????? ================== The original message was:

    C / C++ / MFC c++ help

  • How to set focus to dialog controls
    U User 4487

    Hi Chris, Its' not clear to understand your need. What I guess was you want to set a focus to child control. Get a window handle of that control using pControl->GetSafeHwnd() which will return HWND, Using this handle get a pointer ot that window using FromHandle(). Use this returned pointer to set the focus of that window. This should work. If not, feel free to mail me. ================== The original message was: Hi everybody,
    i have a dialog with a treectrl and several other controls like combo and listboxes,
    and i want that if you doubleclick a treenode/item that his related control in the
    dialog gets the focus. The treenode stores a pointer to his related control.
    I tried pControl->SetFocus() in the OnDblClk handler but it doesn't work.

    Need help.

    TIA, Chris

    C / C++ / MFC help 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