Click here to Skip to main content
15,889,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: [MFC] How to draw an eclipse with any color and line width on memory device context ( using bitmap )? Pin
CPallini3-Mar-09 22:21
mveCPallini3-Mar-09 22:21 
AnswerRe: [MFC] How to draw an eclipse with any color and line width on memory device context ( using bitmap )? Pin
Iain Clarke, Warrior Programmer3-Mar-09 22:36
Iain Clarke, Warrior Programmer3-Mar-09 22:36 
AnswerRe: [MFC] How to draw an eclipse with any color and line width on memory device context ( using bitmap )? Pin
Iain Clarke, Warrior Programmer3-Mar-09 22:41
Iain Clarke, Warrior Programmer3-Mar-09 22:41 
AnswerRe: [MFC] How to draw an eclipse with any color and line width on memory device context ( using bitmap )? Pin
Un Suthee4-Mar-09 23:41
Un Suthee4-Mar-09 23:41 
Questionhow to use the efs interface with vc6 ? [modified] Pin
mars4ever3-Mar-09 14:46
mars4ever3-Mar-09 14:46 
QuestionChartDirectory Pin
BobInNJ3-Mar-09 14:35
BobInNJ3-Mar-09 14:35 
Questionbmp background for a non-subclassed ctreectrl Pin
kitkat120123-Mar-09 9:41
kitkat120123-Mar-09 9:41 
AnswerRe: bmp background for a non-subclassed ctreectrl Pin
Code-o-mat3-Mar-09 11:43
Code-o-mat3-Mar-09 11:43 
Well, you could try subclassing the window itself, i mean, use SetWindowLong[^] with GWL_WNDPROC to change the tree's windowproc to a method written by yourself which handles WM_PAINT and/or WM_ERASEBKGND and passes everything else to the original window procedure...so something like:
...
WNDPROC OriginalProc = (WNDPROC)SetWindowLong(m_myTree, GWL_WNDPROC, (LONG_PTR)MyTreeProc);
...

LRESULT CALLBACK MyTreeProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
  if (Msg == WM_ERASEBKGND)
  {
    ...
  } else return CallWindowProc(OriginalProc, hWnd, Msg, wParam, lParam);
}


> 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. <

QuestionDisable Events of HTMLElement Pin
vikrant kpr3-Mar-09 6:40
vikrant kpr3-Mar-09 6:40 
AnswerRe: Disable Events of HTMLElement Pin
Perisic, Aleksandar3-Mar-09 10:01
Perisic, Aleksandar3-Mar-09 10:01 
GeneralRe: Disable Events of HTMLElement Pin
vikrant kpr3-Mar-09 10:03
vikrant kpr3-Mar-09 10:03 
GeneralRe: Disable Events of HTMLElement Pin
Perisic, Aleksandar3-Mar-09 10:12
Perisic, Aleksandar3-Mar-09 10:12 
GeneralRe: Disable Events of HTMLElement Pin
vikrant kpr3-Mar-09 10:13
vikrant kpr3-Mar-09 10:13 
GeneralRe: Disable Events of HTMLElement Pin
vikrant kpr3-Mar-09 10:21
vikrant kpr3-Mar-09 10:21 
GeneralRe: Disable Events of HTMLElement Pin
Perisic, Aleksandar3-Mar-09 10:38
Perisic, Aleksandar3-Mar-09 10:38 
GeneralRe: Disable Events of HTMLElement Pin
vikrant kpr3-Mar-09 10:53
vikrant kpr3-Mar-09 10:53 
GeneralRe: Disable Events of HTMLElement Pin
vikrant kpr3-Mar-09 11:07
vikrant kpr3-Mar-09 11:07 
GeneralRe: Disable Events of HTMLElement Pin
Perisic, Aleksandar3-Mar-09 11:11
Perisic, Aleksandar3-Mar-09 11:11 
QuestionDriving a 3rd-party app from my app. Pin
davidjaybrown3-Mar-09 5:46
davidjaybrown3-Mar-09 5:46 
AnswerRe: Driving a 3rd-party app from my app. Pin
Stuart Dootson3-Mar-09 6:19
professionalStuart Dootson3-Mar-09 6:19 
GeneralRe: Driving a 3rd-party app from my app. Pin
davidjaybrown3-Mar-09 7:45
davidjaybrown3-Mar-09 7:45 
GeneralRe: Driving a 3rd-party app from my app. Pin
Stuart Dootson3-Mar-09 8:05
professionalStuart Dootson3-Mar-09 8:05 
AnswerRe: Driving a 3rd-party app from my app. Pin
vikrant kpr3-Mar-09 6:30
vikrant kpr3-Mar-09 6:30 
GeneralRe: Driving a 3rd-party app from my app. Pin
davidjaybrown3-Mar-09 8:10
davidjaybrown3-Mar-09 8:10 
GeneralRe: Driving a 3rd-party app from my app. Pin
vikrant kpr3-Mar-09 8:24
vikrant kpr3-Mar-09 8:24 

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.