![]() |
[C++] Probleme mit Dialogressourcen
Hi,
inzwischen frage ich mich, warum ich mir mal eine Schülerversion VS.NET gewünscht habe. :roll: Folgendes Problem: Ich habe mir eine Dialogressource erstellt. Funktioniert auch im Test wunderbar. Im Programm ansich allerdings nicht:
Hat einer von euch da eine Lösung, warum das nicht geht??? Chris PS: Ich würde mich ja gerne an ein C++-Forum wenden, aber ich kenne kein wirklich gutes: Programmierer-Board erhalte ich erst nach zwei Tagen eine Antwort, C++-Ecke ist nicht das, was ich suche. Mehr kenne ich nicht. ;) |
Re: [C++] Probleme mit Dialogressourcen
|
Re: [C++] Probleme mit Dialogressourcen
Deine Schleife war falsch, so ist richtig:
Code:
philwo
while (GetMessage(&msg, NULL, 0, 0))
{ if ((IsDialogMessage(hDialog, &msg) == FALSE) || (IsWindow(hDialog) == FALSE)) { TranslateMessage(&msg); DispatchMessage(&msg); } } |
Re: [C++] Probleme mit Dialogressourcen
Und deine DlgProc ist so auch etwas richtiger: :)
Code:
philwo
INT_PTR CALLBACK DialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ switch(uMsg) { case WM_INITDIALOG: break; case WM_CLOSE: PostQuitMessage(0); break; case WM_COMMAND: { switch (LOWORD(wParam)) { case IDC_SCAN: GetDlgItemText(hWnd, IDC_AREASTART, szStart, 1024); MessageBox(hWnd, szStart, NULL, MB_OK | MB_ICONINFORMATION); break; } break; } } return FALSE; } |
Re: [C++] Probleme mit Dialogressourcen
Hi,
@Luckie: okay. Habe mich registriert und bin jetzt still. @Philipp: Okay, danke! Chris PS: philwo hat von mir den kompletten Source bekommen. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:55 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz