WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Control Manager
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Handling a Font Display in a Dialog Box

Keywords:   font size dialog


CtlHwnd=cWndByID(CwHwnd,270)    ; get handle for Font Size combo

CB_SETCURSEL=347
WM_COMMAND=273
CBN_SELCHANGE=1

seconditem=2
;   BEGIN cSetCBItem(CtlHwnd,seconditem)
i=cSendMessage(CtlHwnd,CB_SETCURSEL,seconditem,1);

GWL_ID = -12

DaDll=StrCat(DirWindows(1),"user32.dll")
ID=DllCall(DaDll,long:"GetWindowLongA",long:CtlHwnd,long:GWL_ID)
DaParam= (CBN_SELCHANGE << 16) | ID

cPostMessage(cwHwnd,WM_COMMAND,DaParam,CtlHwnd);
;   END cSetCBItem(CtlHwnd,seconditem)


Article ID:   W12507
Filename:   Handling a Font Display in a Dialog Box.txt
File Created: 2017:07:28:13:58:26
Last Updated: 1999:04:15:16:47:42