by michfiel@[EMAIL PROTECTED]
(Michael Fielitz)
Mar 8, 2006 at 02:34 PM
Hello,
<jolielara@[EMAIL PROTECTED]
> wrote:
> Hi,
>
> I encounter trouble to update menus in my LApplication-derived app for
> LSingleDoc-derived windows.
> Each time I display a dialog box using this king of code:
>
> void AnyFunc()
> {
> StDialogHandler theHandler(PPob_MyID, this);
> LWindow* theDialog = theHandler.GetDialog();
> theDialog->Show();
> while (true) {
> MessageT hitMessage = theHandler.DoDialog();
> if (hitMessage == msg_Cancel) {
> break;
> } else if (hitMessage == msg_OK) {
> // Do something
> break;
> }
> }
> }
>
> when exiting this dialog using cancel or OK my app's menus are not
> updated correctly
[...]
just a guess: this second parameter to the StDialogHandler's ctor - are
you sure to pass a pointer to your application class as a
supercommander?
I think this affect the correct command handling/menu enabling
mechanism.
Michael