|
Excellent
Thanks,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello,
I am wondering if there is a way to detect a right click on the header of each tab of a tab control?
Any help is appreciated.
Thanks..
|
|
|
|
|
Is the NM_RCLICK[^] notification what you're looking for?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Well yes, I am looking for detecting NM_RCLICK .. but I want to handle it only when the right click is performed on the tab header ( i.e. I don't know if tab header is the correct word for it .. but this is what I mean - http://www.geocities.com/swaps4781/tabheader.JPG (the circled area) )
|
|
|
|
|
NM_RCLICK should be the notification you're looking for.
The part you have circled is the actual tab.
Generally, the tabs ares the only visible portion of a tab control -
the rest of the control (if any) is covered with another window so
right-clicks go to those windows.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Hey Friends
I need to navigate an existing IE window to some other location.
IWebBrowser2::Navigate Method, but it opens another window & navigates to it
where as i am looking to navigate a already opened window to some other location
tried IEHelper in cp but no luck
m_oObject.FindUsingTitle(CString("google.com"));
m_oObject.Navigate("http://www.yahoo.com");
Need help
Regards
|
|
|
|
|
vikrant kpr wrote: m_oObject.Navigate("http://www.yahoo.com");
Have you tried the Navigate2() method?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yeah thanks it worked but after i uninstalled visual studio 9
|
|
|
|
|
Do you want to open other address?
|
|
|
|
|
please help to create tool tip for Edit Control
sarojsigdel
|
|
|
|
|
see here. Google is your friend.
|
|
|
|
|
Have you first called CWnd::EnableToolTips(TRUE) ? And since your dialog is not derived from CFrameWnd , tool tips for your edit control will not display correctly unless you provide a handler for the TTN_NEEDTEXTW and TTN_NEEDTEXTA notifications.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
m_tooltip.Create(this);
SetToolTip("Hello");
void CAnswerView::SetToolTip(LPTSTR ToolTip)
{
TOOLINFO ti;
ti.cbSize = sizeof(TOOLINFO);
ti.lpszText = ToolTip;
ti.hinst = AfxGetInstanceHandle();
ti.hwnd = m_Button.m_hWnd;
ti.uFlags = TTF_SUBCLASS | TTF_IDISHWND;
ti.uId = (UINT) m_Button.m_hWnd; m_tooltip.SendMessage(TTM_ADDTOOL, 0, (LPARAM) &ti);}
|
|
|
|
|
hi all,
I am creating application that reads data from file and again save the updated data to file. I don't want users to modify the saved file outside the application. If somebody does so, the file shouldnot be opened by the application that I have developed.
can anybody help me.
sarojsigdel
sarojsigdel
|
|
|
|
|
I'm not certain I understand this :
sarojsigdel wrote: If somebody does so, the file shouldnot be opened by the application that I have developed.
Why can't you simply use a binary format that only your application knows ? if someone else wants to mess with the file, why would your application care if they manually screw it up ?
If the file was modified by someone else, why do you not want to be able to open it with your own application ???
|
|
|
|
|
I have used dimple text format. I don't know how to use a binary format.
sarojsigdel
sarojsigdel
|
|
|
|
|
hi all,
I am developing a application that takes input from file. I want to display the file name that is opened on the TITLE BAR of Dialog BOX. I need very simple code. As i am begineer, I don't understand complex codes.
thank you
sarojsigdel
|
|
|
|
|
use SetWindowText to set the caption on a dialog
void CMyDialog::SomeFunction()
{
SetWindowText("New Title");
}
|
|
|
|
|
thanks Chris
the code worked
thanks a lot
|
|
|
|
|
Or you can use of WM_SETTEXT .
|
|
|
|
|
Hey Friends
I am calling the function get_images but finally i could not figure out it's path
Need Help.
Regards
IHTMLElementCollection* pColl = NULL;
hr = pHtmlDoc->get_images (&pColl);
..
long nLength = 0;
pColl->get_length (&nLength);
for (int i = 0; i < nLength && bSearch; i++)
{
hr = pElemDispatch->QueryInterface (IID_IHTMLElement, (void**)&pElem);
if (SUCCEEDED (hr) && (pElem != NULL))
{
//I got an Image but how to read it?
//Could not find even its path??
}
}
|
|
|
|
|
Did you try querying the interface for IPicture? Also, I didn't see any code for getting pElemDispatch from pColl.
Nathan
|
|
|
|
|
hi.. my program is about to capture the dektop by creating compatible dc and compatible bitmap and than convert it from ddb to dib. But I want to compress it before storing it in DAT format. How to proceed with this
prashant
|
|
|
|