UI hangs as Countinously going into WM_PAINT
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
POPULAR GROUPS

more...

comp.os ... win32 Profile…
 Up
UI hangs as Countinously going into WM_PAINT         


Author: vidishasharma
Date: May 16, 2008 06:36

Hi

I have a winproc defined as follows:

private IntPtr ReadingPaneProc(IntPtr hWnd, int msg, IntPtr wParam,
IntPtr lParam)
{
System.Windows.Forms.Message m =
System.Windows.Forms.Message.Create(hWnd, msg, wParam,
lParam);
switch (m.Msg)
{
case WM_SETCURSOR:
MessageBox.Show("Cursor changed");
break;
Show full article (1.16Kb)
2 Comments
Re: UI hangs as Countinously going into WM_PAINT         


Author: jeff
Date: May 17, 2008 02:48

vidishasharma@gmail.com wrote:
> Hi
>
> I have a winproc defined as follows:
>
> private IntPtr ReadingPaneProc(IntPtr hWnd, int msg, IntPtr wParam,
> IntPtr lParam)
> {
> System.Windows.Forms.Message m =
> System.Windows.Forms.Message.Create(hWnd, msg, wParam,
> lParam);
> switch (m.Msg)
> {
> case WM_SETCURSOR:
> MessageBox.Show("Cursor changed");
> break;
>
> case WM_PAINT:
> //InvalidateRect(hWnd,IntPtr.Zero,true );
> ////BeginPaint(hWnd, out pstruct); ...
Show full article (0.88Kb)
no comments
Re: UI hangs as Countinously going into WM_PAINT         


Date: May 17, 2008 06:28

You must have the BeginPaint and EndPaint calls in a WM_PAINT handler.

The InvalidateRect and ValidateRect calls make no sense in a WM_PAINT
handler.

"jeff" real.com> wrote in message news:g0m9jn$lh9$1@aioe.org...
> vidishasharma@gmail.com wrote:
>> Hi
>>
>> I have a winproc defined as follows:
>>
>> private IntPtr ReadingPaneProc(IntPtr hWnd...
Show full article (1.17Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
Re: (Paint) Foundation paintsrec.games.miniatures.warhammer ·