258 // returns the current sub language
259 INLINE static LANGID GetSubLanguage() {
260 return SUBLANGID(m_idLang);
261 }
262 // end waleed
263
264 // returns the current input language
265 INLINE static LANGID GetInputLanguage()
266 {
267 return m_idLang;
268 }
269 // Convert Language ID to CodePage
270 static UINT LangToCodePage(LANGID idLang);
271
272 /*
273 * methods on this component
274 */
275 virtual void Show();
276 virtual void Hide();
277 virtual void Reshape(int x, int y, int w, int h);
278
279 /*
280 * Fix for 4046446.
281 * Component size/position helper, for the values above the short int limit.
282 */
283 static BOOL SetWindowPos(HWND wnd, HWND after,
284 int x, int y, int w, int h, UINT flags);
285
286 /*
287 * Sets the scrollbar values. 'bar' can be either SB_VERT or
288 * SB_HORZ. 'min', 'value', and 'max' can have the value INT_MAX
289 * which means that the value should not be changed.
290 */
291 void SetScrollValues(UINT bar, int min, int value, int max);
292
293 INLINE LRESULT SendMessage(UINT msg, WPARAM wParam=0, LPARAM lParam=0) {
294 DASSERT(GetHWnd());
295 return ::SendMessage(GetHWnd(), msg, wParam, lParam);
296 }
297
|
258 // returns the current sub language
259 INLINE static LANGID GetSubLanguage() {
260 return SUBLANGID(m_idLang);
261 }
262 // end waleed
263
264 // returns the current input language
265 INLINE static LANGID GetInputLanguage()
266 {
267 return m_idLang;
268 }
269 // Convert Language ID to CodePage
270 static UINT LangToCodePage(LANGID idLang);
271
272 /*
273 * methods on this component
274 */
275 virtual void Show();
276 virtual void Hide();
277 virtual void Reshape(int x, int y, int w, int h);
278 void ReshapeNoScale(int x, int y, int w, int h);
279
280 /*
281 * Fix for 4046446.
282 * Component size/position helper, for the values above the short int limit.
283 */
284 static BOOL SetWindowPos(HWND wnd, HWND after,
285 int x, int y, int w, int h, UINT flags);
286
287 /*
288 * Sets the scrollbar values. 'bar' can be either SB_VERT or
289 * SB_HORZ. 'min', 'value', and 'max' can have the value INT_MAX
290 * which means that the value should not be changed.
291 */
292 void SetScrollValues(UINT bar, int min, int value, int max);
293
294 INLINE LRESULT SendMessage(UINT msg, WPARAM wParam=0, LPARAM lParam=0) {
295 DASSERT(GetHWnd());
296 return ::SendMessage(GetHWnd(), msg, wParam, lParam);
297 }
298
|