Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to change Window Class in OWL application?

1 view
Skip to first unread message

Ivan Stepanov

unread,
May 16, 2008, 11:26:49 AM5/16/08
to
Hello,

All OWL applications created with "OWL_WINDOW" name of window classes. Is it
possible to rename or create OWL application with own name?
Thank you in advance.

Best regards,
Ivan Stepanov

Sebastian Ledesma [Solidyne Labs]

unread,
May 16, 2008, 12:04:23 PM5/16/08
to
Hi Ivan:

Just use GetClassName, if:

class TMyDialog : public TDialog, {
public:
TMyDialog(TWindow* parent, TResId resId = IDD_CLIENT, TModule* module =
0);
virtual ~TMyDialog();
char *GetClassName() { return("MY_DIALOG"); };
...
}

Saludos
Sebastian
"Ivan Stepanov" <isste...@yahoo.com> escribió en el mensaje
news:482da5f8$1...@newsgroups.borland.com...

Bruce Salzman

unread,
May 16, 2008, 12:03:02 PM5/16/08
to

"Ivan Stepanov" <isste...@yahoo.com> wrote in message
news:482da5f8$1...@newsgroups.borland.com...

> Hello,
>
> All OWL applications created with "OWL_WINDOW" name of window classes. Is it
> possible to rename or create OWL application with own name?
> Thank you in advance.

Yes, override TWindow::GetClassName() for your main window.

--
Bruce

Ivan Stepanov

unread,
May 19, 2008, 3:24:05 AM5/19/08
to
Dear Bruce and Sebastian,

thank you very match.
It turned out, that is so simple. I was baffled before by another
GetClassName (long TWindow::GetClassName(..) )

Best regards,
Ivan Stepanov


0 new messages