CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: al072

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    1,690

    Re: Can't change CTreeCtrl item image

    Thank you for the links, very helpful information!!! Finally i found the way, i don't know why, but bitmap instead the icon make a trick
  2. Replies
    14
    Views
    8,045

    Re: MFC CListCtrl change checkbox color

    Thank you very much for the link, very interesting and helpful information, unfurtunatley didn't find the answer on my question about the magic number))) But the example in really uncommon., i like...
  3. Replies
    14
    Views
    8,045

    Re: MFC CListCtrl change checkbox color

    I found this way to check and toggle the state of LVSIL_STATE checkbox and it is work perfect:


    void CAlphaListCtrl::OnNMClick(NMHDR* pNMHDR, LRESULT* pResult)
    {
    LPNMITEMACTIVATE...
  4. Replies
    11
    Views
    1,690

    Re: Can't change CTreeCtrl item image

    Thank you for reply! I already did the same, but the result is like you can see on screenshot(( It seems like the text lable stay small and icon overlap it
  5. Replies
    11
    Views
    1,690

    Re: Can't change CTreeCtrl item image

    Images 21x21 are to small and i able to load it like you show, but i need to show icon 32x32 and i am trying to load it the way you posted, but the result you can see on screeshot i provided (it is...
  6. Replies
    14
    Views
    8,045

    Re: MFC CListCtrl change checkbox color

    I found a solution, how to load checkbox images without custom draw, i am using the flag "LVSIL_STATE"


    m_imglist.Add(hUnChecked);
    m_imglist.Add(hChecked);

    ...
  7. Replies
    11
    Views
    1,690

    Re: Can't change CTreeCtrl item image

    Already did it, my icons have size 32x32, but it doesnt help
  8. Replies
    11
    Views
    1,690

    Re: Can't change CTreeCtrl item image

    Now i have another trouble, how to resize image properly? IF i pass values more then 21 to m_imglist.Create(21, 21, ILC_COLOR32,1, 1); , checkbox lookes like out of bounds (here attached a...
  9. Replies
    11
    Views
    1,690

    Re: Can't change CTreeCtrl item image

    VictorN, thank you for quick reply!!! I found solution, my problem was in the following: when the custom ImageList is passed to CTreeCtrl it needs to pass 3 images for 3 different states (disabled,...
  10. Replies
    11
    Views
    1,690

    Can't change CTreeCtrl item image

    Hi to everyone!!! Help me to change CTreeCtrl image on the fly.

    I add the image to the imagelist like this:


    HICON hChecked, hUnChecked;
    // Set up the image list.
    ...
  11. Replies
    14
    Views
    8,045

    Re: MFC CListCtrl change checkbox color

    35940

    That is what i can achieve, take a look please on the top left corner, there is a custom checkbox, but i need the same inside of the CListCtrl not in the header and i dont know how to do it
  12. Replies
    14
    Views
    8,045

    Re: MFC CListCtrl change checkbox color

    Hi, VictorN!!! First of all i want to thank you very much for your time and help. Finally i found the almost what i need in this link:...
  13. Replies
    14
    Views
    8,045

    Re: MFC CListCtrl change checkbox color

    Yes i did, this method only change back color of CListCtrl, but not change the color of checkboxes... it doesnt work for me
  14. Replies
    14
    Views
    8,045

    Re: MFC CListCtrl change checkbox color

    It would be nice to see a code sample, can anybody share it please?
  15. Replies
    14
    Views
    8,045

    Re: MFC CListCtrl change checkbox color

    Thank you for reply! I use CListCtrl
  16. Replies
    14
    Views
    8,045

    MFC CListCtrl change checkbox color

    Hi dear guru!!! I need your help!!! I'm trying to find a way to change background color of checkbox inside CListCtrl, please help me to find a working solution. Maye there is some way to work with...
Results 1 to 16 of 16





Click Here to Expand Forum to Full Width

Featured