iff2html working

This commit is contained in:
Jip 2024-05-06 19:40:19 +02:00
parent deaf3327e0
commit 4cd716e94d
89 changed files with 7711 additions and 3 deletions

View file

@ -0,0 +1,11 @@
#include "Windows.hpp"
#include "GUI.hpp"
void CenterDialog(HWND hDlg){
RECT parent, child;
GetWindowRect(hWnd, &parent);
GetWindowRect(hDlg, &child);
int x = (parent.right + parent.left - child.right + child.left)/2,
y = (parent.bottom + parent.top - child.bottom + child.top)/2;
SetWindowPos(hDlg, 0, x, y, 0, 0, SWP_NOOWNERZORDER | SWP_NOSIZE | SWP_NOZORDER);
}