Created
July 27, 2021 18:26
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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