Microsoft KB Archive/245684

= PRB: SWP_NOREDRAW Not Defined for PPC 2.11 or HPC Pro 2.11 =

Article ID: 245684

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual C++ 6.0

-



This article was previously published under Q245684



SYMPTOMS
When trying to use SetWindowPos with the flag SWP_NOREDRAW on Palm PC (PPC) 2.11 or Handheld PC (HPC) Pro 2.11 the compiler indicates that the SWP_NOREDRAW flag is undefined. The same code compiles on PPC 2.01 and HPC 2.00.



CAUSE
In the Winuser.h file, the SetWindowPos function has a #define SWP_NOREDRAW flag that exists on PPC 2.01 and HPC 2.00 but is not in PPC 2.11 or HPC Pro 2.11. This flag is removed from Winuser.h since it is not supported on Windows CE computers.



RESOLUTION
To avoid the compiler error caused by the undefined SWP_NOREDRAW flag, add the following lines of code to your StdAfx.h file:
 * 1) ifndef SWP_NOREDRAW
 * 2) define SWP_NOREDRAW 0x0008
 * 3) endif



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
 Use AppWizard to create a Windows CE Application.  Add the following line: int Flags = SWP_NOREDRAW;  Compile the program for H/PC Pro Ver. 2.11

Additional query words: H/PC Pro 2.11 Palm-size PC

Keywords: kbbug kbwndw kbprb KB245684

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.