19namespace {
char dummy[] =
"Not empty!"; }
21#if OWL_PERSISTENT_STREAMS
32TWindow::Streamer::Read(ipstream&
is,
uint32 version)
const
34 TWindow*
o = GetObject();
46 o->TransferBuffer = 0;
49 o->ContextPopupMenu = 0;
59 o->DefaultProc = (
WNDPROC)::DefWindowProc;
60 memset(&
o->Attr, 0,
sizeof(
o->Attr));
65 is >>
o->Attr.Style >>
o->Attr.ExStyle
66 >>
o->Attr.X >>
o->Attr.Y >>
o->Attr.W >>
o->Attr.H >> p;
67 o->Attr.Param =
reinterpret_cast<LPVOID>(p);
68 o->DefaultProc = ::DefWindowProc;
73 >>
o->Attr.AccelTable;
80 o->Application =
o->Parent->GetApplication();
86 o->Parent->ChildList =
o;
92 o->Parent->AddChild(
o);
121 o->Scroller->SetWindow(
o);
124 is >>
o->CursorModule >>
o->CursorResId;
125 o->SetCursor(
o->CursorModule,
o->CursorResId);
128 o->InstanceProc =
o->CreateInstanceProc();
137TWindow::Streamer::Write(opstream&
os)
const
139 TWindow*
o = GetObject();
145 else if (
o->Parent) {
147 &&
o->Parent->ChildList ==
o)
156 os << TResId(
o->Title);
173 <<
o->Attr.X <<
o->Attr.Y <<
o->Attr.W <<
o->Attr.H << p;
178 <<
o->Attr.AccelTable;
186 os <<
o->SiblingList;
199 os << (
o->Parent->NumChildren()-1);
210 os <<
o->CursorModule <<
o->CursorResId;
Definition of class TAppDictionary.
Definition of class TApplication.
TApplication * GetApplication(uint pid=0)
Looks up and returns the application associated with a given process ID.
#define IMPLEMENT_STREAMABLE(cls)
@ wfFromResource
Handle comes from HWND created from resource.
@ wfMainWindow
This frame window is the main window.
@ wfStreamTop
This window is the topmost one to stream.
@ wfAutoCreate
Create the HWND when our parent is created.
Object Windows Library (OWLNext Core)
TAppDictionary & OWLGetAppDictionary()
Global exported TAppDictionary in Owl.
#define TYPESAFE_DOWNCAST(object, toClass)
Base window class TWindow definition, including HWND encapsulation.