home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
winutil
/
adg_4_6
/
cntl-de.h
< prev
next >
Wrap
Text File
|
1991-02-21
|
2KB
|
53 lines
/****************************************************************************
Module name: Cntl-DE.H
Programmer : Jeffrey M. Richter.
*****************************************************************************/
// This function should be called first in the ClassInfo function to
// initialize the new control.
GLOBALHANDLE FAR PASCAL ControlInfo (WORD wVersion, LPSTR szClass, LPSTR szTitle);
// This function should be called repeatedly to add new control types to
// the structure returned by the ControlInfo function. This function should
// be called in the ClassInfo function.
BOOL FAR PASCAL AddControlType (GLOBALHANDLE hMem, WORD wType,
WORD wWidth, WORD wHeight, DWORD dwStyle, LPSTR szDescr);
// This function displays the control's style dialog box and should be called
// from the ClassStyle function.
int FAR PASCAL ShowStyleDlg (HANDLE hInstance, LPSTR szTemplate,
HWND hWndParent, FARPROC fpDlgProc, LONG lParam,
GLOBALHANDLE hCtlStyle, LPFNSTRTOID lpfnStrToId,
LPFNIDTOSTR lpfnIdToStr);
// This function should only be called from the ClassDlgFn function. It
// locks the memory block containing the CTLSTYLE structure for the selected
// control and returns the FAR address to that structure.
LPCTLSTYLE FAR PASCAL CtlStyleLock (HWND hDlg);
// This function should only be called from the ClassDlgFn function. It
// unlocks the memory block containing the CTLSTYLE structure for the
// selected control and returns whether the block was successfully unlocked.
BOOL FAR PASCAL CtlStyleUnlock (HWND hDlg);
// This function should only be called from the ClassDlgFn function. It
// converts the ID value for the control into a identifier string and stores
// the string in the address passed in. The number of characters in the
// string is returned.
WORD FAR PASCAL GetIdString (HWND hDlg, LPSTR szId, WORD wIdMaxLen);
// This function should only be called from the ClassDlgFn function. It
// converts an ID string value into its numeric equivalent and stores the
// numeric value in the CTLSTYLE structure for the control. If the loword of
// the result is 0, the ID is invalid, otherwise, the hiword contains the
// numeric value of the ID.
DWORD FAR PASCAL SetIdValue (HWND hDlg, LPSTR szId);