- switch (i_edge)\r
- {\r
- case WMSZ_TOPLEFT:\r
- case WMSZ_LEFT:\r
- case WMSZ_BOTTOMLEFT:\r
- if (m_smallestRestriction & RESTRICT_HORIZONTALLY)\r
- if (io_rc->right - io_rc->left < m_smallestSize.cx)\r
- io_rc->left = io_rc->right - m_smallestSize.cx;\r
- if (m_largestRestriction & RESTRICT_HORIZONTALLY)\r
- if (m_largestSize.cx < io_rc->right - io_rc->left)\r
- io_rc->left = io_rc->right - m_largestSize.cx;\r
- break;\r
- }\r
- switch (i_edge)\r
- {\r
- case WMSZ_TOPRIGHT:\r
- case WMSZ_RIGHT:\r
- case WMSZ_BOTTOMRIGHT:\r
- if (m_smallestRestriction & RESTRICT_HORIZONTALLY)\r
- if (io_rc->right - io_rc->left < m_smallestSize.cx)\r
- io_rc->right = io_rc->left + m_smallestSize.cx;\r
- if (m_largestRestriction & RESTRICT_HORIZONTALLY)\r
- if (m_largestSize.cx < io_rc->right - io_rc->left)\r
- io_rc->right = io_rc->left + m_largestSize.cx;\r
- break;\r
- }\r
- switch (i_edge)\r
- {\r
- case WMSZ_TOP:\r
- case WMSZ_TOPLEFT:\r
- case WMSZ_TOPRIGHT:\r
- if (m_smallestRestriction & RESTRICT_VERTICALLY)\r
- if (io_rc->bottom - io_rc->top < m_smallestSize.cy)\r
- io_rc->top = io_rc->bottom - m_smallestSize.cy;\r
- if (m_largestRestriction & RESTRICT_VERTICALLY)\r
- if (m_largestSize.cy < io_rc->bottom - io_rc->top)\r
- io_rc->top = io_rc->bottom - m_largestSize.cy;\r
- break;\r
- }\r
- switch (i_edge)\r
- {\r
- case WMSZ_BOTTOM:\r
- case WMSZ_BOTTOMLEFT:\r
- case WMSZ_BOTTOMRIGHT:\r
- if (m_smallestRestriction & RESTRICT_VERTICALLY)\r
- if (io_rc->bottom - io_rc->top < m_smallestSize.cy)\r
- io_rc->bottom = io_rc->top + m_smallestSize.cy;\r
- if (m_largestRestriction & RESTRICT_VERTICALLY)\r
- if (m_largestSize.cy < io_rc->bottom - io_rc->top)\r
- io_rc->bottom = io_rc->top + m_largestSize.cy;\r
- break;\r
- }\r
- return TRUE;\r
+ switch (i_edge) {\r
+ case WMSZ_TOPLEFT:\r
+ case WMSZ_LEFT:\r
+ case WMSZ_BOTTOMLEFT:\r
+ if (m_smallestRestriction & RESTRICT_HORIZONTALLY)\r
+ if (io_rc->right - io_rc->left < m_smallestSize.cx)\r
+ io_rc->left = io_rc->right - m_smallestSize.cx;\r
+ if (m_largestRestriction & RESTRICT_HORIZONTALLY)\r
+ if (m_largestSize.cx < io_rc->right - io_rc->left)\r
+ io_rc->left = io_rc->right - m_largestSize.cx;\r
+ break;\r
+ }\r
+ switch (i_edge) {\r
+ case WMSZ_TOPRIGHT:\r
+ case WMSZ_RIGHT:\r
+ case WMSZ_BOTTOMRIGHT:\r
+ if (m_smallestRestriction & RESTRICT_HORIZONTALLY)\r
+ if (io_rc->right - io_rc->left < m_smallestSize.cx)\r
+ io_rc->right = io_rc->left + m_smallestSize.cx;\r
+ if (m_largestRestriction & RESTRICT_HORIZONTALLY)\r
+ if (m_largestSize.cx < io_rc->right - io_rc->left)\r
+ io_rc->right = io_rc->left + m_largestSize.cx;\r
+ break;\r
+ }\r
+ switch (i_edge) {\r
+ case WMSZ_TOP:\r
+ case WMSZ_TOPLEFT:\r
+ case WMSZ_TOPRIGHT:\r
+ if (m_smallestRestriction & RESTRICT_VERTICALLY)\r
+ if (io_rc->bottom - io_rc->top < m_smallestSize.cy)\r
+ io_rc->top = io_rc->bottom - m_smallestSize.cy;\r
+ if (m_largestRestriction & RESTRICT_VERTICALLY)\r
+ if (m_largestSize.cy < io_rc->bottom - io_rc->top)\r
+ io_rc->top = io_rc->bottom - m_largestSize.cy;\r
+ break;\r
+ }\r
+ switch (i_edge) {\r
+ case WMSZ_BOTTOM:\r
+ case WMSZ_BOTTOMLEFT:\r
+ case WMSZ_BOTTOMRIGHT:\r
+ if (m_smallestRestriction & RESTRICT_VERTICALLY)\r
+ if (io_rc->bottom - io_rc->top < m_smallestSize.cy)\r
+ io_rc->bottom = io_rc->top + m_smallestSize.cy;\r
+ if (m_largestRestriction & RESTRICT_VERTICALLY)\r
+ if (m_largestSize.cy < io_rc->bottom - io_rc->top)\r
+ io_rc->bottom = io_rc->top + m_largestSize.cy;\r
+ break;\r
+ }\r
+ return TRUE;\r