|
typedef struct tagNMLINK { //nm structure for SYSLINK
NMHDR hdr;
LITEM item;
} NMLINK, *PNMLINK;
After about half an hour I had reversed the entire HTMLLITE NM structure……
大于过了半个小时,我修正了全部的HTMLLITE NM结构……
The most important member is linkid. This member contains the value of the parameter linkid used in a <a href="……"> style markup. So if you have more than one link in a HTMLLITE control, simply add linkid parameters to your <a>'s and they will be filled into the following structure's similarly named member.
最重要的成员变量是LINKID,这个成员包含了在<a href="……">符号中LINKID的参数值。所以,如果你有多个HTMLLITE控件,简单的在你<a>中添加LINKID参数,那么他们就会出现在LINKID变量中。
Collapse
综合
typedef struct NMHTMLLITE {
//The Window Handle (hWnd) of the HTMLLITE control
//…… sending you this message
//HTMLLITE控件的窗口句柄。
DWORD hwndFrom;
//If your HTMLLITE control is on a dialog, this member
//…… contains its Dialog ID.
//如果你的HTMLLITE控件在一个对话框中,这个变量包含了它的对话框ID
DWORD idFrom;
//As defined below. As an example, this member will
//…… equal HTMLLITE_CODE_LEFTCLICK when a Link has
//…… been Left-clicked.
//上面定义了,例如如果这个参数等于HTMLLITE_CODE_LEFTCLICK,那么就是一个连接//被点击了
DWORD code;
//When you create a Link with <a href="……" linkid=xxx>
//…… the linkid parameter is filled in this member.
//…… allowing you to know which link has been clicked
//…… in your HTMLLITE control and then perform a specific action.
//当你用LINKID创建了一个连接时如:<a href="……" linkid=xxx>,那么连接参数就会填充到//这个变量中,这个润许你了解哪个连接被点击了。这时你就可以执行一些特殊的动作了
DWORD linkid;
//This is a RECT structure which contains the coord's and
//…… dimensions of the Link concerned.
//这是一个RECT结构,包含着所关注的LINK的坐标。
RECT linkrc;
} NMHTMLLITE, *LPNMHTMLLITE;
Easy peasy.
简单,相当简单
Extent of HTML implementation?
HTML的扩展引入了吗?
Well to be honest, I am unsure. I know it seems to use CSS-alike HTML, but it is not really W3C quality :)
说实话,我也不确定。我只知道它好像时使用了CSS似的HTML,但并不是真正的W3C标准
Here are a few pieces of markup that MS .NET apps use, so you'll know how much I know:
这里有一些在MS.NET应用程序中使用的代码片段,所以你就知道了我知道多少了。
<p highlight=#003399 padding-left=20 padding-top=14 padding-bottom=14>
<font face="arial" size=12pt color="white"><b>Microsoft</b></font>
<br><font face="arial" size=22pt color="white">Visual Studio .NET Setup
</font></p>
<p align="right"><a color=#3F4F7F HOVER-COLOR=#C3120C linkid=211>
<b>Text goes here</b></a></p>
Earlier today I checked if Tables would work - they didn't.
今天的早些时候我检查了下表格很能用-他们不能用!
全文完
原文:http://www.codeproject.com/miscctrl/htmllite.asp 上一页 [1] [2]
 【责编:Kittoy】
|