超怪现象!现郁闷中?
大家请看下面一段程序:
我注解一下我在内存中观察的变量值
//inWidow为一有效句柄
RECT windowRect;
::GetClientRect(inWindow, &windowRect);
//到这windowsRect已经得到值,windowRect.right=409,windowRect.bottom=373;
long ViWidth;
ViWidth=windowRect.right;
//到这一步,观察内存值发现ViWidth=1239028(是不是应该为409呢?)
long ViHeight;
ViHeight=windowRect.bottom;
//到这一步,观察内存值发现ViWidth=1238176(是不是应该为373呢?)
看了半天,也没看出所以然来,现在极度郁闷中!有高手,请指点一下