DeflateRect
-
Dennis L wrote: What's the SDK function of the DeflateRect of MFC No SDK available for that, you have to implement that. here is small logic to proceed :-
void MyDeflate(RECT *rect,int left,int top,int right,int bottom) { rect->bottom-=bottom; rect->right-=right; rect->top+=top; rect->left+=left; } void MyDeflate(RECT *rect,SIZE size) { MyDeflate(rect,size.cx,size.cy); } void MyDeflate(RECT *rect,int x, int y) { MyDeflate(rect,x,x,y,y); }
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
There is no corresponding function in the SDK. Actually, if you look at the definition of
CRect::DeflateRect
, you will see that it calls::InflateRect
by negating the parameters.Which finger are you using today?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
Which finger are you using today?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
That's because I have plugged 2 keyboards on my PC so that now I can type twice faster than you! :-D
Stlan wrote: I have plugged 2 keyboards on my PC :omg: Stlan wrote: now I can type twice faster than you! :laugh:;)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta