ID Number: Q79243
1.00
WINDOWS
buglist1.00
Summary:
PROBLEM ID: QCW9112009
SYMPTOMS
Dialog box control statements such as CTEXT, LTEXT, RTEXT, ICON,
CHECKBOX, PUSHBUTTON, and RADIOBUTTON use the following attributes
text, id, x, y, width, height [,style]
where x, y, width, and height can be expressions that use the
addition operator for relative positioning. However, when height is
such an expression and is followed by the optional style parameter,
the resource compiler that ships with Microsoft QuickC for Windows
(QC/Win) version 1.0 and the Microsoft Windows Software Development
Kit (SDK) version 3.0 generates the error:
error RW2002: Invalid Control Type
RESOLUTION
Remove the style field.
-or-
Evaluate the height expression elsewhere.
STATUS
Microsoft has confirmed this to be a problem with the resource
compiler shipped with QC/Win version 1.0 and the resource compiler
that ships with the Windows SDK version 3.0. We are researching
this problem and will post new information here as it becomes
available.
More Information
The following .RC file demonstrates the problem. To work around the
problem, either remove the WS_GROUP or use 15 instead of 14+1.
Sample Code
-----------
/* Resource Compiler options needed: none
*/
#include <windows.h>
AboutBox DIALOG 20, 20, 140, 188
STYLE WS_POPUP | WS_DLGFRAME
{
CTEXT "Test" -1, 0, 12, 140, 8
CTEXT "About Box Demo" -1, 4, 36, 130, 8
DEFPUSHBUTTON "OK" IDOK, 20, 168, 40, 14, WS_GROUP
PUSHBUTTON "Cancel" IDCANCEL, 80, 168, 40, 14+1,
WS_GROUP
}
Additional reference words: 1.00 3.00 listbox groupbox edittext
combobox scrollbar winsdk