childwnd.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. ** Copyright (C) 2003 Nullsoft, Inc.
  3. **
  4. ** This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held
  5. ** liable for any damages arising from the use of this software.
  6. **
  7. ** Permission is granted to anyone to use this software for any purpose, including commercial applications, and to
  8. ** alter it and redistribute it freely, subject to the following restrictions:
  9. **
  10. ** 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software.
  11. ** If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  12. **
  13. ** 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  14. **
  15. ** 3. This notice may not be removed or altered from any source distribution.
  16. **
  17. */
  18. #ifndef _CHILDWND_H_
  19. #define _CHILDWND_H_
  20. typedef struct {
  21. int id;
  22. int type; // 0xLTRB
  23. RECT rinfo;
  24. } ChildWndResizeItem;
  25. /* If you are including this file from a plugin, you can't call these functions directly. they are here to help you create the function pointer typedefs */
  26. void childresize_init(HWND hwndDlg, ChildWndResizeItem *list, int num);
  27. void childresize_resize(HWND hwndDlg, ChildWndResizeItem *list, int num);
  28. void childresize_resize2(HWND hwndDlg, ChildWndResizeItem *list, int num, BOOL fRedraw = FALSE, HRGN rgnUpdate = NULL);
  29. //extended versions we use so we can modify the list before actually setting it
  30. void childresize_resize_to_rectlist(HWND hwndDlg, ChildWndResizeItem *list, int num, RECT *rectout);
  31. void childresize_resize_from_rectlist(HWND hwndDlg, ChildWndResizeItem *list, int num, RECT *rectin);
  32. #endif//_CHILDWND_H_