Microsoft Visual Studio 2008 - Resource Scripts support only addition '+' and subtraction '-' operators for the Numerical fields. Multiplication '*' and Division '\' operators and Parentheses '( )' are not supported.
e.g.
# define WINDOW_X 0
# define WINDOW_Y 0
# define WINDOW_WIDTH 300
# define WINDOW_HEIGHT 120
# define BORDER_SIZE 2
IDD_MAINDIALOG DIALOG WINDOW_X, WINDOW_Y, WINDOW_WIDTH-2*BORDER_SIZE, WINDOW_HEIGHT
// Here WINDOW_WIDTH-2*BORDER_SIZE will evaluate to only: WINDOW_WIDTH
// Thus instead use:
WINDOW_WIDTH-BORDER_SIZE-BORDER_SIZE
No comments:
Post a Comment