PRB: SWP_NOREDRAW Not Defined for PPC 2.11 or HPC Pro 2.11 (245684)
The information in this article 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:
#ifndef SWP_NOREDRAW
#define SWP_NOREDRAW 0x0008
#endif
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/15/2002 |
---|
Keywords: | kbBug kbprb kbWndw KB245684 |
---|
|