ll_libload hhctrl, "hhctrl.ocx"
ll_getproc HtmlHelp, "HtmlHelpA", hhctrl
#module
#deffunc htmlhelp_open str, int
mref file, 32 : mref context, 1
mref bmscr, 67
if context {
prm = bmscr.13, 0, 0x000F, context
} else {
prm = bmscr.13, 0, 0x0001, 0
}
ll_getptr file : ll_ret prm.1
ll_callfunc prm, 4, HtmlHelp@
return
#deffunc htmlhelp_close onexit
mref bmscr, 67
prm = bmscr.13, 0, 0x0012, 0
ll_callfunc prm, 4, HtmlHelp@
return
#global
helpfile = curdir + "\\help2.chm"
exist helpfile
if strsize = -1 {
dialog "[" + helpfile + "]がありません"
end
}
objsize 100, 25
pos 10, 10 : combox index, , "目次\nサンプル1\nサンプル2\nサンプル3\nサンプル4\nサンプル5"
pos 120, 10 : button "ヘルプを表示", *open
stop
*open
htmlhelp_open helpfile, index
stop
|