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

Search:

Type: Posts; User: MasterDucky

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    5,669

    Re: Paint on a Tabcontrol

    They are ok, returning the indexes of the tabs.
    Actually it not only breaks out of the switch() but it breaks out of the WM_DRAWITEM and never goes to the rest of the code, that is the problem.
    ...
  2. Replies
    10
    Views
    5,669

    Re: Paint on a Tabcontrol

    Thanks for the help.
    I tried to apply the code but I'm doing something wrong, the tabs won't even show up.


    #include <windows.h>
    #include <commctrl.h>
    #include <iostream>
    using namespace...
  3. Replies
    10
    Views
    5,669

    Re: Paint on a Tabcontrol

    I want to paint with GDI+ on it.

    Graphics graphics(hdc);
    Pen pen(Color(255, 0, 0, 255));
    graphics.DrawLine(&pen, 20, 20, 150, 550);

    I want to use only raw Win32 APIs and I...
  4. Replies
    10
    Views
    5,669

    Re: Paint on a Tabcontrol

    "Won't work" means that it won't paint, won't draw a line.

    I admit that I'm completely lost and I thought that you needed to declare this struct in order to paint on a tabcontrol.

    "it" is...
  5. Replies
    10
    Views
    5,669

    Re: Paint on a Tabcontrol

    Thanks for the guidance.
    So as I understand I have to use WM_DRAWITEM and not WM_PAINT.
    I set up a DRAWITEMSTRUCT structure and try to paint in WM_DRAWITEM but it still won't work.



    #include...
  6. Replies
    10
    Views
    5,669

    Paint on a Tabcontrol

    Hi,

    How to paint on a tabcontrol?
    I tried to take the window handle or the tab handle but none of them works.


    #include <windows.h>
    #include <commctrl.h>
    #include <iostream>
    using...
Results 1 to 6 of 6





Click Here to Expand Forum to Full Width

Featured