| 104 | } |
| 105 | |
| 106 | Boolean |
| 107 | RetrieveSize(short kind, short top, short left, short *height, short *width) |
| 108 | { |
| 109 | Point p; |
| 110 | |
| 111 | if (kind < 0 || kind > kLastWindowKind) { |
| 112 | return 0; |
| 113 | } |
| 114 | InitWinFile(); |
| 115 | if (!savePos[kind].validSize) { |
| 116 | return 0; |
| 117 | } |
| 118 | *width = savePos[kind].width; |
| 119 | *height = savePos[kind].height; |
| 120 | p.h = left + *width; |
| 121 | p.v = top + *height; |
| 122 | return PtInRgn(p, GetGrayRgn()); |
| 123 | } |
| 124 | |
| 125 | static void |
| 126 | SavePosition(short kind, short top, short left) |
no test coverage detected