Click here to Skip to main content
16,011,570 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WindProc function in DLL ? Pin
Ranojay2-Sep-09 1:09
Ranojay2-Sep-09 1:09 
GeneralRe: WindProc function in DLL ? Pin
Randor 2-Sep-09 8:33
professional Randor 2-Sep-09 8:33 
GeneralRe: WindProc function in DLL ? Pin
Ranojay2-Sep-09 18:46
Ranojay2-Sep-09 18:46 
GeneralRe: WindProc function in DLL ? Pin
Randor 2-Sep-09 22:07
professional Randor 2-Sep-09 22:07 
QuestionOnWizardFinish Pin
john56321-Sep-09 20:28
john56321-Sep-09 20:28 
AnswerRe: OnWizardFinish Pin
«_Superman_»1-Sep-09 22:22
professional«_Superman_»1-Sep-09 22:22 
QuestionHow to add a button in ClistCtrl? Pin
Gokul_md1-Sep-09 20:15
Gokul_md1-Sep-09 20:15 
AnswerRe: How to add a button in ClistCtrl? Pin
Code-o-mat1-Sep-09 22:12
Code-o-mat1-Sep-09 22:12 
Why on Earth do you want to put a button in the corner of a list control? Smile | :) Anyways, i doubt there is a simple and easy way to do it, is the parent of the button the same as the parent of the list control or is it the list control itself? The simplest thing you could try is to set the WS_CLIPCHILDREN style (if the list is the parent of the buttton) or WS_CLIPSIBLINGS style (if the parent of the list is the parent of the button), but i doubt it will work and setting the WS_CLIPCHILDREN style causes redraw animalies in the header control if you have one.
You could try decreasing the client area of the list control and put the button on it, this works only if the list is not the parent of the button, you have to make the list not draw onto the button or at least make the button get drawn when the list's nonclient area is drawn, there's a simple way to do this, but i can't remember what now, i think you would need to set WS_TRANSPARENT on the list and ensure that the button is under the list in the Z-order, but i am not sure. The drawback here is that you can't have list items in the non-client area so if you insist on having the button sitting among list items, this won't do for you.
Another thing you could maybe try is to overwrite the scroll-message handlers in the list, disable the redrawing of the list (SetRedraw[^]), calling the base scroll method, then re-enabling redrawing and have the list redraw it self, you might need to explicitly clip the button from the invalidated area.
These are just vague ideas, dunno if any of these would work of suit your needs.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

AnswerRe: How to add a button in ClistCtrl? Pin
Hamid_RT2-Sep-09 4:21
Hamid_RT2-Sep-09 4:21 
QuestionHow to get the file size of a very big file which one's size is bigger than 0xFFFE Pin
adroitadroit201-Sep-09 18:52
adroitadroit201-Sep-09 18:52 
AnswerRe: How to get the file size of a very big file which one's size is bigger than 0xFFFE Pin
Code-o-mat1-Sep-09 20:29
Code-o-mat1-Sep-09 20:29 
AnswerRe: How to get the file size of a very big file which one's size is bigger than 0xFFFE Pin
Michael Schubert1-Sep-09 20:51
Michael Schubert1-Sep-09 20:51 
AnswerRe: How to get the file size of a very big file which one's size is bigger than 0xFFFE Pin
Randor 1-Sep-09 21:14
professional Randor 1-Sep-09 21:14 
GeneralRe: How to get the file size of a very big file which one's size is bigger than 0xFFFE Pin
adroitadroit201-Sep-09 22:13
adroitadroit201-Sep-09 22:13 
GeneralRe: How to get the file size of a very big file which one's size is bigger than 0xFFFE Pin
Randor 1-Sep-09 22:26
professional Randor 1-Sep-09 22:26 
QuestionDetecting complete loading of document in IE Pin
ethankoh821-Sep-09 16:42
ethankoh821-Sep-09 16:42 
AnswerRe: Detecting complete loading of document in IE Pin
cmk1-Sep-09 17:36
cmk1-Sep-09 17:36 
GeneralRe: Detecting complete loading of document in IE Pin
ethankoh821-Sep-09 19:49
ethankoh821-Sep-09 19:49 
QuestionDraw button Pin
thanhvinh09061-Sep-09 7:37
thanhvinh09061-Sep-09 7:37 
AnswerRe: Draw button Pin
Cedric Moonen1-Sep-09 7:47
Cedric Moonen1-Sep-09 7:47 
GeneralRe: Draw button Pin
thanhvinh09061-Sep-09 7:56
thanhvinh09061-Sep-09 7:56 
QuestionText coming out in a wrong orientation Pin
Anthony Appleyard1-Sep-09 5:10
Anthony Appleyard1-Sep-09 5:10 
AnswerRe: Text coming out in a wrong orientation Pin
Richard MacCutchan1-Sep-09 6:00
mveRichard MacCutchan1-Sep-09 6:00 
GeneralRe: Text coming out in a wrong orientation Pin
Anthony Appleyard1-Sep-09 6:37
Anthony Appleyard1-Sep-09 6:37 
GeneralRe: Text coming out in a wrong orientation Pin
Cedric Moonen1-Sep-09 7:33
Cedric Moonen1-Sep-09 7:33 

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.