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
B

blagrang

@blagrang
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to change the treeview background
    B blagrang

    Hi Here is my problem. I am programming in Win32. I create a window that contains a treeview window child : hTV = CreateWindow( WC_TREEVIEW, NULL, WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | WS_CAPTION | TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_EDITLABELS , rect.left,rect.top,rect.right/4,rect.bottom/2, hwnd, // parent window NULL, (HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), NULL); It works well except that instead of having the whole background of the treeview as white (which is I think the default color), the background of the "decoration" stuff (lines at root, lines, buttons) of the treeview is gray. I would like to have it all white. Would someone know how to do that ? Thanks in advance for help Ben.

    C / C++ / MFC help tutorial question

  • Multiple Line Edit
    B blagrang

    try \r\n instead of \n It should work Ben

    C / C++ / MFC question announcement

  • Editing treeview in win32 dialog closes dialog
    B blagrang

    Hi Here is my problem: I have a Win32 application (no MFC) and want to allow the user to edit some options in a treeview inside a dialog. But when the user edits an option in the treeview, the dialog closes as soon as a key is pressed. The treeview has EDITLABELS on, it is possible to begin editing (TVN_BEGINLABELEDIT Notify is sent to the dialog) but as soon as an editing key (letters, numbers but not arrows)is pressed the dialog closes (TVN_ENDLABELEDIT is sent). And the application doesn't close. The solution is probably simple but I cannot see where the problem comes from. Any help would be great. Thank you in advance Ben.

    C / C++ / MFC help c++
  • Login

  • Don't have an account? Register

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