diff options
Diffstat (limited to 'PE/reinsert.cpp')
-rw-r--r-- | PE/reinsert.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/PE/reinsert.cpp b/PE/reinsert.cpp index da6225b..28b7c75 100644 --- a/PE/reinsert.cpp +++ b/PE/reinsert.cpp @@ -5,27 +5,22 @@ #include "cdutils.h" #include "reinsert-res.h" -#include <afxres.h> +#include <windowsx.h> #define index 0x838da #define offset 0x83b78 -
-BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam)
-{
+ +BOOL CALLBACK AboutDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lParam) {
Base::printm(M_STATUS, "AboutDlgProc: uMsg = %i (0x%x)\n", uMsg, uMsg);
- switch(uMsg)
- {
- case WM_COMMAND:
- {
- switch(LOWORD(wParam))
- {
- case IDCANCEL: DestroyWindow(hW);return TRUE;
- case IDOK: DestroyWindow(hW);return TRUE;
- }
+ switch (uMsg) {
+ case WM_COMMAND:
+ switch (LOWORD(wParam)) {
+ case IDCANCEL: DestroyWindow(hW); return TRUE;
+ case IDOK: DestroyWindow(hW); return TRUE;
+ }
}
- }
- return FALSE;
+ return FALSE;
}
void LaisserSouffler(HWND Dlg) {
@@ -56,6 +51,9 @@ void UpdateProgress(HWND Dlg, float percent) { r.right = percent * r.right / 100;
MoveWindow(ctrl, r.left, r.top, r.right, r.bottom, TRUE);
InvalidateRect(ctrl, NULL, TRUE);
+ ctrl = GetDlgItem(Dlg, IDC_BLAHBLAH);
+ Static_SetText(ctrl, "Toto");
+ InvalidateRect(ctrl, NULL, TRUE);
UpdateWindow(Dlg);
}
@@ -67,6 +65,8 @@ virtual int startup() throw (GeneralException) { Handle * iw; cdutils * cd; +// new Archive(*argv, ARCHIVE_EXECUTABLE); + verbosity = M_INFO; ShowWindow(Dlg = CreateDialog(0, MAKEINTRESOURCE(IDD_ABOUT), GetActiveWindow(), AboutDlgProc), SW_SHOWDEFAULT); |