25 lines
954 B
Plaintext
25 lines
954 B
Plaintext
#if 0
|
|
Rect toolRect(30,30,100,100);
|
|
PureToolInfo toolInfo;
|
|
// toolInfo.flags((UINT)PureToolInfo::IDIsHwnd|(UINT)PureToolInfo::SubClass);
|
|
toolInfo.hwnd(*this);
|
|
// toolInfo.toolID((UINT)(HWND)*this);
|
|
toolInfo.toolID(110);
|
|
toolInfo.rect(toolRect);
|
|
toolInfo.resInst(processInstance());
|
|
toolInfo.szText("You're in the hot region.");
|
|
|
|
// mToolTipControl->addTool(pureToolInfo);
|
|
if(!mToolTipControl->addTool(toolInfo))::OutputDebugString("mToolTipControl->addTool returned FALSE.\n");
|
|
toolInfo.szText(0);
|
|
toolInfo.rect(Rect());
|
|
if(!mToolTipControl->getToolInfo(toolInfo))::OutputDebugString("mToolTipControl->getToolInfo - returned FALSE.\n");
|
|
mToolTipControl->activate(TRUE);
|
|
#endif
|
|
|
|
|
|
|
|
// mhControlWnd=::CreateWindowEx(WS_EX_TOPMOST|WS_EX_STATICEDGE|WS_EX_TOOLWINDOW,TOOLTIPS_CLASS,"",WS_VISIBLE|WS_CHILD|style,
|
|
// CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
|
|
// mParentWindow,(HMENU)controlID(),mParentWindow.processInstance(),0);
|