Has upright released several different color Democratic Inneva Woven shoes, Nike recently with another direction to bring shoes with different styling to all [url=http://fossilsdirect.co.uk/glossarey.cfm]nike huarache[/url] eyes. This brings special issue Unfastened Inneva Woven is a Fair-skinned Call of works in the series, represents shoes Italian made the assurance. Latest Safe from Inneva Woven clouded and pornographic are available in two color schemes, to hand-knit Woven vamp in extension to infiltrated Italy's [url=http://markwarren.org.uk/property-waet.cfm]nike air max 90[/url] finest crafts, for the moment gives athletes closed to the foot of relieve, the most distinguished affair is the goal of Free 5 configuration, barefoot be aware it pass on allure cannot be ignored. Nike Disburden Inneva Woven SP White Identify Compact on Walk 16 at outlets about the [url=http://northernroofing.co.uk/roofins.cfm]nike free run uk[/url] trade-mark on the shelves, and on in stock in narrow sort, interested friends should produce results fasten attention to Nike announced the news.
ReplyChange the font of the dialog to Tahoma 8. Now on Mousemove you find that - the text gets disturbed.
Resolution:
Add ON_WM_ERASEBKGND() in the message map
BOOL CHyperLink::OnEraseBkgnd(CDC* pDC)
{
CRect rect;
GetClientRect(rect);
pDC->FillSolidRect(rect, ::GetSysColor(COLOR_3DFACE));
return TRUE;
}
Reply
Originally posted by: khalil
I want to add hyper link in menu item so plz tell me how i can add hyper link in menu item
ReplyOriginally posted by: P
Hi
I tried to use this nice control in an aboutdialog - but it won't work !
Any ideas how to do that ?
Thanks
P
Originally posted by: WH
How can i place a hyperlink in a textbox?
ReplyOriginally posted by: Thomas Baust
But, it is better to load system's IDC_HAND Cursor on Win2k & XP. If the system can't find IDC_HAND (i.e. Win9x), hLinkCursor will NULL, and simply continue with the orginal code. So i have changed SetDefaultCursor:
void CHyperLink::SetDefaultCursor()
if (g_hLinkCursor == NULL) // No cursor handle - load our own
strWndDir += _T("\\winhlp32.exe");
First, your control is great.
{
if (g_hLinkCursor == NULL) // No cursor handle - load
{
HCURSOR hHandCursor = ::LoadCursor(NULL,MAKEINTRESOURCE(32649)); // try to load system cursor
if (hHandCursor)
g_hLinkCursor = CopyCursor(hHandCursor);
{
// Get the windows directory
CString strWndDir;
GetWindowsDirectory(strWndDir.GetBuffer(MAX_PATH), MAX_PATH);
strWndDir.ReleaseBuffer();
// This retrieves cursor #106 from winhlp32.exe, which is a hand pointer
HMODULE hModule = LoadLibrary(strWndDir);
if (hModule) {
hHandCursor = ::LoadCursor(hModule, MAKEINTRESOURCE(106));
if (hHandCursor)
g_hLinkCursor = CopyCursor(hHandCursor);
}
FreeLibrary(hModule);
}
}
}
Originally posted by: Rod
I have to use the line:
AFX_MANAGE_STATE(AfxGetStaticModuleState());
So the dll can load its resources.
It works the first time I load the dialog.
But the second time it crashes here:
BOOL CGdiObject::Attach(HGDIOBJ hObject)
Exactly at this line:
ASSERT(m_hObject == NULL); // only attach once, detach on destroy
Does any one know why? and how to solve it?
There is an error when I use your code in a DLL.
{
ASSERT(m_hObject == NULL); // only attach once, detach on destroy
if (hObject == NULL)
return FALSE;
CHandleMap* pMap = afxMapHGDIOBJ(TRUE); // create map if not exist
ASSERT(pMap != NULL);
pMap->SetPermanent(m_hObject = hObject, this);
return TRUE;
}
Originally posted by: Phil
Please forgive me for hacking your code. I love your control but I want it to do two more things.
1st display multiple lines of text.
2nd show at least two colors per line.
I'm a pretty good C programmer, but a little new to C++ and Windows, so I included my code change in the hopes of getting your opinion.
Secondly, can the control display more than one color? If so could you give me some hints?
Thanks.
void CHyperLink::AdjustWindow()
{
...
// Get the extent of window text
CString strWndText;
GetWindowText(strWndText);
CDC* pDC = GetDC();
CFont* pOldFont = pDC->SelectObject(&m_Font);
CSize Extent = pDC->GetTextExtent(strWndText);
//Code I added starts here.
//Count the number of line returns
char* pszLineCount = strWndText.GetBuffer(0);
short nLineCount = 1;
while(*pszLineCount != NULL) {
if(*pszLineCount == '\n')
nLineCount++;
pszLineCount++;
}
strWndText.ReleaseBuffer();
//Expand the width by the number of line returns.
Extent = CSize(Extent.cx , Extent.cy * nLineCount);
Reply
Originally posted by: Gangadhar Bhat
Hi,
Your hyperlink control looks great!. It works great too!
I am doing GUI using ATL so that I can make it snappable to MMC console. Since it is an executable( not DLL), i can not import any MFC classes. My user interface strictly uses ATL and uses IWebbrowser interface to navigate web pages. However, I have hard time to see the samples for doing hyperlink control using strictly win32 so that i can plug in that code in my ATL code. Could please help to find this out. I am kind of novice to user interface area. I used to be driver guy.
I would greatly appreciate your help.
Thanks..
GD
ReplyOriginally posted by: Gangadhar Bhat
Hi,
Your hyperlink control looks great!. It works great too!
I am doing GUI using ATL so that I can make it snappable to MMC console. Since it is an executable( not DLL), i can not import any MFC classes. My user interface strictly uses ATL and uses IWebbrowser interface to navigate web pages. However, I have hard time to see the samples for doing hyperlink control using strictly win32 so that i can plug in that code in my ATL code. Could please help to find this out. I am kind of novice to user interface area. I used to be driver guy.
I would greatly appreciate your help.
Thanks..
GD
Reply