Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: inline functions link error. Pin
sunit58-Aug-05 3:20
sunit58-Aug-05 3:20 
GeneralHelp in Multithreaded Socket programming Pin
javaClaude7-Aug-05 21:17
javaClaude7-Aug-05 21:17 
GeneralClipping child windows Pin
Jesper Knudsen7-Aug-05 21:11
Jesper Knudsen7-Aug-05 21:11 
GeneralRe: Clipping child windows Pin
John R. Shaw8-Aug-05 20:30
John R. Shaw8-Aug-05 20:30 
GeneralRe: Clipping child windows Pin
Jesper Knudsen8-Aug-05 20:40
Jesper Knudsen8-Aug-05 20:40 
GeneralRe: Clipping child windows Pin
John R. Shaw8-Aug-05 22:14
John R. Shaw8-Aug-05 22:14 
GeneralRe: Clipping child windows Pin
Jesper Knudsen8-Aug-05 22:28
Jesper Knudsen8-Aug-05 22:28 
GeneralRe: Clipping child windows Pin
John R. Shaw8-Aug-05 23:16
John R. Shaw8-Aug-05 23:16 
:-DNow was that so hard?

Off the top of my head you have two choices: (1) Draw the headers after you have drawn the grid (you'll see some flicker, not a good thing), (2) Draw the headers first and exclude them (ExcludeClipRect(...)) from the drawing region, before doing any more drawing. In any case, only invaidate the areas where an actual change has occurred (not the entire window).

The drawing is the simple part, it gets more complicated after that (of course you know that already).

There is a Grid control (by Chris Maunder) at CP that you can study (or use). Many peaple at CP have contributed to it and it is free.

What you appear to be working on is what I call fun and what employers call a waste of resourses, if they know you're reinventing the wheel (don't educate them).

Good Night!

INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralRe: Clipping child windows Pin
Jesper Knudsen8-Aug-05 23:37
Jesper Knudsen8-Aug-05 23:37 
GeneralRe: Clipping child windows Pin
John R. Shaw9-Aug-05 10:06
John R. Shaw9-Aug-05 10:06 
GeneralRe: Clipping child windows Pin
John R. Shaw9-Aug-05 13:47
John R. Shaw9-Aug-05 13:47 
GeneralRe: Clipping child windows Pin
Jesper Knudsen9-Aug-05 20:35
Jesper Knudsen9-Aug-05 20:35 
GeneralRe: Clipping child windows Pin
John R. Shaw13-Aug-05 17:07
John R. Shaw13-Aug-05 17:07 
GeneralRe: Clipping child windows Pin
Jesper Knudsen17-Aug-05 1:31
Jesper Knudsen17-Aug-05 1:31 
GeneralWindows messages Pin
Ali Tavakol7-Aug-05 20:58
Ali Tavakol7-Aug-05 20:58 
GeneralRe: Windows messages Pin
khan++7-Aug-05 21:35
khan++7-Aug-05 21:35 
GeneralRe: Windows messages Pin
Ali Tavakol8-Aug-05 19:10
Ali Tavakol8-Aug-05 19:10 
GeneralRe: Windows messages Pin
John R. Shaw8-Aug-05 21:05
John R. Shaw8-Aug-05 21:05 
GeneralArabic text for Windows control classes Pin
Ali Tavakol7-Aug-05 20:41
Ali Tavakol7-Aug-05 20:41 
GeneralRe: Arabic text for Windows control classes Pin
ThatsAlok7-Aug-05 20:59
ThatsAlok7-Aug-05 20:59 
GeneralRe: Arabic text for Windows control classes Pin
John R. Shaw8-Aug-05 21:40
John R. Shaw8-Aug-05 21:40 
GeneralRe: Arabic text for Windows control classes Pin
Ali Tavakol10-Aug-05 23:09
Ali Tavakol10-Aug-05 23:09 
GeneralRe: Arabic text for Windows control classes Pin
John R. Shaw13-Aug-05 18:02
John R. Shaw13-Aug-05 18:02 
GeneralOpening a File/URL with default browser Pin
retro_coder7-Aug-05 20:31
retro_coder7-Aug-05 20:31 
GeneralRe: Opening a File/URL with default browser Pin
khan++7-Aug-05 20:51
khan++7-Aug-05 20:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.