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

C / C++ / MFC

 
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 
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 
I tried creating such a header-wnd already. This approach has three additional problems:

1) the header and the actual grid dowsn't draw excactly at the same time (even if they're invalidated at the same time), so the header seem to be 'ahead' of the grid when resizing columns.

2) the header leaves a blank space in upper right corner of the grid control, above the vertical scroller. Notice file explorer has a scroller all the way up to the top.

3) too much housekeeping with who's actually owning the 'columns'. The header should simply know so much about the grid, that it might aswell be the same window.

My next strategy is as follows:

Create a header-cwnd yes, but leave it 'blank', that is without drawing anything with it. Pass all mouse messages on to the grid ctrl. Let the header and the cedit have the CLIP_SIBLINGS flag, and they'll clip against each other. Clumsy yes - but it's the only solution I can find to my question: "how to clip child windows to a clipping region defined by the parent?"

- Holy cow

Simple is beautiful
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 
GeneralRe: Opening a File/URL with default browser Pin
ThatsAlok7-Aug-05 20:54
ThatsAlok7-Aug-05 20:54 
GeneralRe: Opening a File/URL with default browser Pin
retro_coder7-Aug-05 21:10
retro_coder7-Aug-05 21:10 
GeneralRe: Opening a File/URL with default browser Pin
ThatsAlok7-Aug-05 20:53
ThatsAlok7-Aug-05 20:53 
Generalhelp me ..how to convert MFC application in activeX dll Pin
rajesh_kapure7-Aug-05 20:00
rajesh_kapure7-Aug-05 20:00 
GeneralRe: help me ..how to convert MFC application in activeX dll Pin
ThatsAlok7-Aug-05 20:31
ThatsAlok7-Aug-05 20:31 
QuestionWorking on POST method with BHO? Pin
nmhuy7-Aug-05 17:39
nmhuy7-Aug-05 17:39 

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.