Skip to content

Instantly share code, notes, and snippets.

@CarlTBarnes
Created July 27, 2021 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CarlTBarnes/7d0b7c6e8547447de87b04f6211fc1d3 to your computer and use it in GitHub Desktop.
Save CarlTBarnes/7d0b7c6e8547447de87b04f6211fc1d3 to your computer and use it in GitHub Desktop.
LIST and COMBO -- Show the DROP List or Hide it with WinAPI message CB_SHOWDROPDOWN
MAP
ListDropDown PROCEDURE(LONG FeqList, BOOL RollUp=0) !0=Down 1=Roll Up
MODULE('Win32')
PostMessage(LONG hWnd,LONG wMsg,LONG wParam,LONG lParam),BOOL,PROC,PASCAL,DLL(1),NAME('PostMessageA')
END
END
ListDropDown PROCEDURE(LONG FeqList, BOOL RollUp=0) !0=Down 1=Roll Up
CODE !CB_SHOWDROPDOWN = &H14F
IF FeqList{PROP:Type}=CREATE:Combo THEN
FeqList=FeqList{PROP:ButtonFeq} !COMBO must Post to Drop Button FEQ
END !LIST just post to List FEQ
PostMessage(FeqList{PROP:Handle},14Fh, 1-RollUp,0) !wParam 1=Show Drop, 0=Hide Drop
RETURN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment