PDA

View Full Version : who can tell me something about the difference between IModule and IWindow


Tiger
09-05-2003, 06:24 AM
these days I have do some native develop, I want to develop some specifically components that inherit IModule interface,but when we discussed,someone said that we can use IWindow interface.

who can tell me something about the difference between IModule and IWindow,and their merits & demerits

kUfa
09-05-2003, 07:29 AM
What is iwindow? Never heard of it, and cannot see it in the api specs..

/kUfa

Tiger
09-05-2003, 07:51 AM
just like the usage in the Brew Example_MediaPlayer,
IWindow is the struct that define event interface table,current active interface will be drew bace its own IWindow struct

just like define:

typedef struct _IWindow IWindow;
QINTERFACE(IWindow)
{
// Enables/Disables the window. Window controls will not process
// events if the window is disabled.
void (*Enable)(IWindow * po, boolean bEnable);

// Redraws the window if enabled
void (*Redraw)(IWindow * po);

// Handles the events routed to the window
boolean (*HandleEvent)(IWindow * po, AEEEvent eCode, uint16 wParam, uint32 dwParam);

// Releases the window resources
void (*Delete)(IWindow * po);
};

kUfa
09-05-2003, 07:54 AM
ok thx for the info, i ll have a look at it!

/kUfa

Tiger
09-05-2003, 08:02 AM
:) thank u