Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::PSI::interface::control_interface_tag Structure
C++
struct control_interface_tag {
  PRENDER_INTERFACE (* SetControlInterface)(PRENDER_INTERFACE DisplayInterface);
  PIMAGE_INTERFACE (* SetControlImageInterface)(PIMAGE_INTERFACE DisplayInterface);
  void (* AlignBaseToWindows)(void);
  void (* SetBaseColor)(INDEX idx, CDATA c);
  CDATA (* GetBaseColor)(INDEX idx);
  PSI_CONTROL (* CreateFrame)(CTEXTSTR caption, int x, int y , int w, int h , _32 BorderFlags , PSI_CONTROL hAbove);
  PSI_CONTROL (* CreateFrameFromRenderer)(CTEXTSTR caption , _32 BorderTypeFlags , PRENDERER pActImg);
  void (* DestroyFrameEx)(PSI_CONTROL pf DBG_PASS);
  int (* FrameBorderX)(_32 flags);
  int (* FrameBorderXOfs)(_32 flags);
  int (* FrameBorderY)(_32 flags, CTEXTSTR caption);
  int (* FrameBorderYOfs)(_32 flags, CTEXTSTR caption);
  void (* DisplayFrame)(PSI_CONTROL pf);
  void (* SizeCommon)(PSI_CONTROL pf, _32 w, _32 h);
  void (* SizeCommonRel)(PSI_CONTROL pf, _32 w, _32 h);
  void (* MoveCommon)(PSI_CONTROL pf, S_32 x, S_32 y);
  void (* MoveCommonRel)(PSI_CONTROL pf, S_32 x, S_32 y);
  void (* MoveSizeCommon)(PSI_CONTROL pf, S_32 x, S_32 y, _32 w, _32 h);
  void (* MoveSizeCommonRel)(PSI_CONTROL pf, S_32 x, S_32 y, _32 w, _32 h);
  PSI_CONTROL (* GetControl)(PSI_CONTROL pf, int ID);
  PTRSZVAL (* GetFrameUserData)(PSI_CONTROL pf);
  void (* SetFrameUserData)(PSI_CONTROL pf, PTRSZVAL psv);
  void (* UpdateFrame)(PSI_CONTROL pf , int x, int y , int w, int h);
  void (* SetFrameMousePosition)(PSI_CONTROL frame, int x, int y);
  PSI_CONTROL (* GetFrame)(PSI_CONTROL pc);
  PSI_CONTROL (* GetNearControl)(PSI_CONTROL pc, int ID);
  void (* GetControlTextEx)(PSI_CONTROL pc, TEXTSTR buffer, int buflen, int bCString);
  void (* SetControlText)(PSI_CONTROL pc, CTEXTSTR text);
  void (* SetControlFocus)(PSI_CONTROL pf, PSI_CONTROL pc);
  void (* EnableControl)(PSI_CONTROL pc, int bEnable);
  int (* IsControlEnabled)(PSI_CONTROL pc);
  Image (* GetControlSurface)(PSI_CONTROL pc);
  void (* SetCommonDraw)(PSI_CONTROL pf, void (__cdecl*Draw)( PTRSZVAL, PSI_CONTROL pc ), PTRSZVAL psv);
  void (* SetCommonKey)(PSI_CONTROL pf, void (__cdecl*Key)(PTRSZVAL,_32), PTRSZVAL psv);
  void (* SetCommonMouse)(PSI_CONTROL pc, void (__cdecl*MouseMethod)(PTRSZVAL, S_32 x, S_32 y, _32 b ),PTRSZVAL psv);
  void (* UpdateControlEx)(PSI_CONTROL pc DBG_PASS);
  int (* GetControlID)(PSI_CONTROL pc);
  void (* DestroyControlEx)(PSI_CONTROL pc DBG_PASS);
  void (* SetNoFocus)(PSI_CONTROL pc);
  void* (* ControlExtraData)(PSI_CONTROL pc);
  void (* OrphanCommon)(PSI_CONTROL pc);
  void (* AdoptCommon)(PSI_CONTROL pFoster, PSI_CONTROL pElder, PSI_CONTROL pOrphan);
  void (* AddCommonButtonsEx)(PSI_CONTROL pf , int *done, CTEXTSTR donetext , int *okay, CTEXTSTR okaytext);
  void (* AddCommonButtons)(PSI_CONTROL pf, int *done, int *okay);
  void (* CommonLoop)(int *done, int *okay);
  void (* ProcessControlMessages)(void);
  void (* PressButton)(PSI_CONTROL pc, int bPressed);
  int (* IsButtonPressed)(PSI_CONTROL pc);
  int (* GetCheckState)(PSI_CONTROL pc);
  void (* SetCheckState)(PSI_CONTROL pc, int nState);
  void (* SetTextControlColors)(PSI_CONTROL pc, CDATA fore, CDATA back);
  void (* SetSliderValues)(PSI_CONTROL pc, int min, int current, int max);
  int (* PickColor)(CDATA *result, CDATA original, PSI_CONTROL pAbove);
  Font (* PickFont)(S_32 x, S_32 y , P_32 size, POINTER *pFontData , PSI_CONTROL pAbove);
  void (* ResetList)(PSI_CONTROL pc);
  PLISTITEM (* InsertListItem)(PSI_CONTROL pc, PLISTITEM prior, CTEXTSTR text);
  PLISTITEM (* InsertListItemEx)(PSI_CONTROL pc, PLISTITEM prior, int nLevel, CTEXTSTR text);
  PLISTITEM (* AddListItem)(PSI_CONTROL pc, const CTEXTSTR text);
  PLISTITEM (* AddListItemEx)(PSI_CONTROL pc, int nLevel, const CTEXTSTR text);
  void (* DeleteListItem)(PSI_CONTROL pc, PLISTITEM hli);
  void (* SetItemData)(PLISTITEM hli, PTRSZVAL psv);
  PTRSZVAL (* GetItemData)(PLISTITEM hli);
  void (* GetItemText)(PLISTITEM hli, TEXTSTR buffer, int bufsize);
  PLISTITEM (* GetSelectedItem)(PSI_CONTROL pc);
  void (* SetSelectedItem)(PSI_CONTROL pc, PLISTITEM hli);
  void (* SetCurrentItem)(PSI_CONTROL pc, PLISTITEM hli);
  PLISTITEM (* FindListItem)(PSI_CONTROL pc, CTEXTSTR text);
  PLISTITEM (* GetNthItem)(PSI_CONTROL pc, int idx);
  void (* SetSelChangeHandler)(PSI_CONTROL pc, SelectionChanged proc, PTRSZVAL psvUser);
  void (* SetDoubleClickHandler)(PSI_CONTROL pc, DoubleClicker proc, PTRSZVAL psvUser);
  PMENU (* CreatePopup)(void);
  void (* DestroyPopup)(PMENU pm);
  void * (* GetPopupData)(PMENU pm, int item);
  PMENUITEM (* AppendPopupItem)(PMENU pm, int type, PTRSZVAL dwID, CPOINTER pData);
  PMENUITEM (* CheckPopupItem)(PMENU pm, _32 dwID, _32 state);
  PMENUITEM (* DeletePopupItem)(PMENU pm, _32 dwID, _32 state);
  int (* TrackPopup)(PMENU hMenuSub, PSI_CONTROL parent);
  int (* PSI_OpenFile)(CTEXTSTR basepath, CTEXTSTR types, CTEXTSTR result);
  int (* PSI_OpenFileEx)(CTEXTSTR basepath, CTEXTSTR types, CTEXTSTR result, int Create);
  void (* SetScrollParams)(PSI_CONTROL pc, int min, int cur, int range, int max);
  PSI_CONTROL (* MakeScrollBar)(PSI_CONTROL pf, int x, int y, int w, int h, PTRSZVAL nID, int flags);
  void (* SetScrollUpdateMethod)(PSI_CONTROL pc , void (__cdecl*UpdateProc)(PTRSZVAL psv, int type, int current) , PTRSZVAL data);
  void (* MoveScrollBar)(PSI_CONTROL pc, int type);
  void (* SimpleMessageBox)(PSI_CONTROL parent, CTEXTSTR title, CTEXTSTR content);
  void (* HideFrame)(PSI_CONTROL pf);
  void (* UpdateCommonEx)(PSI_CONTROL pc, int bDraw);
};
Members 
Description 
PIMAGE_INTERFACE (* SetControlImageInterface)(PIMAGE_INTERFACE DisplayInterface); 
 
void (* AlignBaseToWindows)(void); 
 
CDATA (* GetBaseColor)(INDEX idx); 
 
PSI_CONTROL (* CreateFrame)(CTEXTSTR caption, int x, int y , int w, int h , _32 BorderFlags , PSI_CONTROL hAbove); 
 
void (* DestroyFrameEx)(PSI_CONTROL pf DBG_PASS); 
 
int (* FrameBorderX)(_32 flags); 
 
int (* FrameBorderXOfs)(_32 flags); 
 
int (* FrameBorderY)(_32 flags, CTEXTSTR caption); 
 
int (* FrameBorderYOfs)(_32 flags, CTEXTSTR caption); 
 
void (* DisplayFrame)(PSI_CONTROL pf); 
 
void (* SizeCommon)(PSI_CONTROL pf, _32 w, _32 h); 
 
void (* SizeCommonRel)(PSI_CONTROL pf, _32 w, _32 h); 
 
void (* MoveCommonRel)(PSI_CONTROL pf, S_32 x, S_32 y); 
 
void (* MoveSizeCommon)(PSI_CONTROL pf, S_32 x, S_32 y, _32 w, _32 h); 
 
PSI_CONTROL (* GetControl)(PSI_CONTROL pf, int ID); 
 
PTRSZVAL (* GetFrameUserData)(PSI_CONTROL pf); 
 
void (* UpdateFrame)(PSI_CONTROL pf , int x, int y , int w, int h); 
 
void (* SetFrameMousePosition)(PSI_CONTROL frame, int x, int y); 
 
PSI_CONTROL (* GetFrame)(PSI_CONTROL pc); 
 
PSI_CONTROL (* GetNearControl)(PSI_CONTROL pc, int ID); 
 
void (* GetControlTextEx)(PSI_CONTROL pc, TEXTSTR buffer, int buflen, int bCString); 
 
void (* SetControlText)(PSI_CONTROL pc, CTEXTSTR text); 
 
void (* SetControlFocus)(PSI_CONTROL pf, PSI_CONTROL pc); 
 
void (* EnableControl)(PSI_CONTROL pc, int bEnable); 
 
int (* IsControlEnabled)(PSI_CONTROL pc); 
 
Image (* GetControlSurface)(PSI_CONTROL pc); 
 
void (* UpdateControlEx)(PSI_CONTROL pc DBG_PASS); 
 
int (* GetControlID)(PSI_CONTROL pc); 
 
void (* SetNoFocus)(PSI_CONTROL pc); 
 
void* (* ControlExtraData)(PSI_CONTROL pc); 
 
void (* OrphanCommon)(PSI_CONTROL pc); 
 
void (* AdoptCommon)(PSI_CONTROL pFoster, PSI_CONTROL pElder, PSI_CONTROL pOrphan); 
 
void (* AddCommonButtonsEx)(PSI_CONTROL pf , int *done, CTEXTSTR donetext , int *okay, CTEXTSTR okaytext); 
 
void (* AddCommonButtons)(PSI_CONTROL pf, int *done, int *okay); 
 
void (* ProcessControlMessages)(void); 
 
void (* PressButton)(PSI_CONTROL pc, int bPressed); 
 
int (* IsButtonPressed)(PSI_CONTROL pc); 
 
int (* GetCheckState)(PSI_CONTROL pc); 
 
void (* SetCheckState)(PSI_CONTROL pc, int nState); 
 
void (* SetTextControlColors)(PSI_CONTROL pc, CDATA fore, CDATA back); 
 
void (* SetSliderValues)(PSI_CONTROL pc, int min, int current, int max); 
 
int (* PickColor)(CDATA *result, CDATA original, PSI_CONTROL pAbove); 
 
Font (* PickFont)(S_32 x, S_32 y , P_32 size, POINTER *pFontData , PSI_CONTROL pAbove); 
 
void (* ResetList)(PSI_CONTROL pc); 
 
PLISTITEM (* InsertListItem)(PSI_CONTROL pc, PLISTITEM prior, CTEXTSTR text); 
 
PLISTITEM (* InsertListItemEx)(PSI_CONTROL pc, PLISTITEM prior, int nLevel, CTEXTSTR text); 
 
PLISTITEM (* AddListItemEx)(PSI_CONTROL pc, int nLevel, const CTEXTSTR text); 
 
void (* DeleteListItem)(PSI_CONTROL pc, PLISTITEM hli); 
 
void (* SetItemData)(PLISTITEM hli, PTRSZVAL psv); 
 
PTRSZVAL (* GetItemData)(PLISTITEM hli); 
 
void (* GetItemText)(PLISTITEM hli, TEXTSTR buffer, int bufsize); 
 
PLISTITEM (* GetSelectedItem)(PSI_CONTROL pc); 
 
void (* SetCurrentItem)(PSI_CONTROL pc, PLISTITEM hli); 
 
PLISTITEM (* FindListItem)(PSI_CONTROL pc, CTEXTSTR text); 
 
PLISTITEM (* GetNthItem)(PSI_CONTROL pc, int idx); 
 
void (* SetSelChangeHandler)(PSI_CONTROL pc, SelectionChanged proc, PTRSZVAL psvUser); 
 
PMENU (* CreatePopup)(void); 
 
void (* DestroyPopup)(PMENU pm); 
 
void * (* GetPopupData)(PMENU pm, int item); 
 
PMENUITEM (* AppendPopupItem)(PMENU pm, int type, PTRSZVAL dwID, CPOINTER pData); 
 
PMENUITEM (* DeletePopupItem)(PMENU pm, _32 dwID, _32 state); 
 
int (* PSI_OpenFileEx)(CTEXTSTR basepath, CTEXTSTR types, CTEXTSTR result, int Create); 
 
void (* SetScrollParams)(PSI_CONTROL pc, int min, int cur, int range, int max); 
 
void (* SetScrollUpdateMethod)(PSI_CONTROL pc , void (__cdecl*UpdateProc)(PTRSZVAL psv, int type, int current) , PTRSZVAL data); 
 
void (* MoveScrollBar)(PSI_CONTROL pc, int type); 
 
void (* SimpleMessageBox)(PSI_CONTROL parent, CTEXTSTR title, CTEXTSTR content); 
 
void (* HideFrame)(PSI_CONTROL pf); 
 
void (* UpdateCommonEx)(PSI_CONTROL pc, int bDraw); 
 

Begin a basic interface to PSI to consider extending PSI across a message service.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!