Устанавливает пустой прямоугольник. Все значения устанавливаются в нуль.
BOOL SetRectEmpty { LPRECT lprc // указатель на прямоугольник );
В случае успешного выполнения возвращается ненулевое значение.
// TestAPI.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" #include "iostream.h" void main() { RECT r1; SetRectEmpty(&r1); cout << r1.left << " " << r1.top << " " << r1.bottom << " " << r1.top << endl; }