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

C / C++ / MFC

 
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 
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 
Holly cow! No wonder you have been having problems!

It honestly never occured to me to scroll a grid by less than a line size (at least, not that I remember). Personaly I would not do it, accept as an exercise (fun). But if that is what you want, then you need to split the header row and the actual grid into seperate windows. That way, your cell drawing has no effect on you header drawing at all and if you scroll the grid, you do not not need to redraw the header.

Note: If you have a column header (most likely), then it would also have to be split into anouther window for the same reason (accept when scrolling (up/down) you'll have to scroll it too!).

The splitting of headers into sperate windows should have no effect on your file format, since they are only indirectly related.

If (for some strange reason) you wanted to be suburn, then you would have to override the drawing of the edit control completely, as I know of no way to modify the DC it is using internaly (before it actualy draws on it). Even if you could do that the caret would still overlap the header, even if the edit control did not.

Note: It can be done, but it is way to complicated and not worth the effort.

Addendum:
Even with smooth scrolling, you normaly scroll by a whole line; you just do it slower. What that means in this case is that when the user scrolls: (1) destroy the control (after saving the contents), (2) scroll the window one pixel at a time (redrawing after each) until a whole row has been scrolled.

Well, this post is long enough (I tend to get carried away).

INTP
Rem: If you can think of it (coding wise), then you can probably do it; but you have to decide if it is worth doing.
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 
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 

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.