November 26th, 2012, 10:36 AM
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.
...
November 26th, 2012, 09:47 AM
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...
November 26th, 2012, 07:55 AM
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...
November 26th, 2012, 04:48 AM
"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...
November 25th, 2012, 06:56 AM
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...
November 24th, 2012, 08:11 AM
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...