home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
WHOAMI.ZIP
/
whoami.c
< prev
next >
Wrap
Text File
|
1992-07-13
|
2KB
|
69 lines
/*
* This file was generated by the SOM Compiler.
* FileName: whoami.c.
* Generated using:
* SOM Precompiler spc: 1.22
* SOM Emitter emitc: 1.24
*/
#define Whoami_Class_Source
#include "whoami.ih"
SOM_Scope MRESULT SOMLINK wpDrop(Whoami *somSelf,
HWND hwndCnr,
PDRAGINFO pdrgInfo,
PDRAGITEM pdrgItem)
{
char szDataType[80];
/* WhoamiData *somThis = WhoamiGetData(somSelf); */
WhoamiMethodDebug("Whoami","wpDrop");
DrgQueryStrName(pdrgItem->hstrSourceName, 80, szDataType);
WinMessageBox(HWND_DESKTOP,
HWND_DESKTOP,
szDataType,
"Who Am I?",
0,
MB_NOICON | MB_OK | MB_MOVEABLE);
return 0;
// return (parent_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem));
}
SOM_Scope HWND SOMLINK wpOpen(Whoami *somSelf,
HWND hwndCnr,
ULONG ulView,
ULONG param)
{
/* WhoamiData *somThis = WhoamiGetData(somSelf); */
WhoamiMethodDebug("Whoami","wpOpen");
if (ulView != OPEN_SETTINGS)
WinMessageBox(HWND_DESKTOP,
HWND_DESKTOP,
"This program identifies objects dropped on it.",
"Who Am I?",
0,
MB_MOVEABLE | MB_OK);
else
return (parent_wpOpen(somSelf,hwndCnr,ulView,param));
}
SOM_Scope MRESULT SOMLINK wpDraggedOverObject(Whoami *somSelf,
WPObject *DraggedOverObject)
{
/* WhoamiData *somThis = WhoamiGetData(somSelf); */
WhoamiMethodDebug("Whoami","wpDraggedOverObject");
WinMessageBox(HWND_DESKTOP,
HWND_DESKTOP,
"Don't move me!!",
"Who Am I?",
0,
MB_MOVEABLE | MB_OK);
return 0;
// return (parent_wpDraggedOverObject(somSelf,DraggedOverObject));
}