|
sorry for that sir
bur stil in customize and in tools only
visual component manager
register control
visual component manager
visual component manager
visual component manager
are present
thanks sir
|
|
|
|
|
Please read carefully.
In the customize->tools tab, you can ADD, MODIFY or DELETE existing menus.
Click on any menuitem in the list to edit/delete it.
You can double click on the blank line at the end of list to add new menu.
The list contains the name of menu to be displayed and the command contains the execuatble to run on hitting the menu.
This is all i can tell and hope this will help.
Good luck
|
|
|
|
|
Dear Friends,
i just thought of opening a Website link from my VC++ application. how to do that can any body help me out plz?
i just wanted to know are there any API with help of which i can open a web link?
Megha
|
|
|
|
|
ShellExecute(0, L"open", L"www.codeproject.com", NULL, NULL, SW_SHOWNORMAL);
- NS -
|
|
|
|
|
NS17 wrote: ShellExecute(0, L"open", L"www.codeproject.com", NULL, NULL, SW_SHOWNORMAL);
No. use L extension where you're certain that UNICODE is defined.
the following should be more secure and extensible code :
::ShellExecute(NULL, _T("open"), _T("www.codeproject.com"), NULL, NULL, SW_SHOWNORMAL);
|
|
|
|
|
Oops I didnt notice that when I copy-paste...
- NS -
|
|
|
|
|
See CHtmlView and CDHtmlDialog classes.
|
|
|
|
|
draw a sdi or any app
but base class should be viewHtml and it has OnInitialUpdate()
fun automaticlly change site name only
code is:
void CMyHtmlAppView::OnInitialUpdate()
{
CHtmlView::OnInitialUpdate();
Navigate2(_T("msdn.microsoft.com/visualc/"),NULL,NULL);
}
i think it help u
|
|
|
|
|
thank u so much.. it worked.. i m creating one application to make task of filling timesheet bit easier for my team members...
thank u once again.
Megha
|
|
|
|
|
Use ShellExecute to open the website in internet explorer in the following way -
ShellExecute (0, L"open", L"iexplore.exe", L"www.codeproject.com", NULL, SW_SHOWNORMAL);
|
|
|
|
|
NishantB++ wrote: ShellExecute (0, L"open", L"iexplore.exe", L"www.codeproject.com", NULL, SW_SHOWNORMAL);
nope, for 2 reasons.
1) dont force the user to use internet explorer if he defined firefox (or any other) to be the default browser.
2) don't use the L extension unless you're certain that UNICODE is defined. read my other post[^] about that point.
|
|
|
|
|
toxcct wrote: dont force the user to use internet explorer
I already mentioned that - "open the website in internet explorer "
The second reason was only because of C PY PASTE. Sorry for that.
|
|
|
|
|
but why do you not let the system choose the default browser ?
|
|
|
|
|
some people dont want choice it seems...
|
|
|
|
|
Hi,
I have an SDI application. I want to display the current mouse position in the view onto the Main frame status bar.
I have declared the variable m_ptCurrentPositon in the Main frame class which will contain the current mouse coordinates and I am updating it in the OnMouseMove() and OnNcHitTest() of my View class.
All I want is once the mouse moves out of the view window(client area), I should be able to detect that so that I could set the m_ptCurrentPositon value to (0,0), because currently when I mouse out of the view, I am still displaying the non-zero value in my Status bar.
How do I achieve the above mentioned?
|
|
|
|
|
Do the following:
1. Declare bool m_bMouseInside in class and initialize it as false.
2. In OnMouseMove()do the following.
if( !m_bMouseInside )
{
m_bMouseInside = true;
TRACKMOUSEEVENT tme = { 0 };
tme.cbSize = sizeof( tme );
tme.dwFlags = TME_LEAVE;
tme.hwndTrack = m_hWnd;
_TrackMouseEvent( &tme );
}
3. Map WM_MOUSELEAVE as OnMouseLeave or something
It will be called when the mouse leaves the client area.
- NS -
|
|
|
|
|
Hi to all!
If I was to change the appearance of scroll bars in my CListCtrl (from boring windows style to something else witch will match my background color) would it need to be an custom or owner drown control. If custom is enough (I hope because mine is), would it be on a 'OnCustomdrawList' function? Or it can not be done like that but by creation a new scrollbar members and build it in CListCtrl?
Please help!
|
|
|
|
|
Scrollbar customization is very much different than customizing a control, because the scrollbar is a part of the window and it is in the non-client area. So you have to manage it differently.
There are many articles in CP regarding this, having a look at them may help you a lot.
- NS -
|
|
|
|
|
Thanks for replay!
So I need to change it's appearance before and 'pass' them to my CListCtrl?
|
|
|
|
|
No you cant do so. Scrollbar is not a separate control. It is the part of the window. So the OS is drawing scrollbar. Having a look at the CP articles will help you in understanding more regarding this. And there are many solutions too.
- NS -
|
|
|
|
|
how to perform insert / delete in a file with out reading all the content and update whole content back in to the file.
//for eg;
//myfile.txt
[names]
name1
name2
name2
name3
name5
name2
.
.
.
[/names]
is it possible to delete name2 and insert name4 after name3. If i open a file and try to insert a text its allways replaces the existing content.
Thanks & Regards
|
|
|
|
|
No, you can't. You'll need to import the file in memory, modify it there and then save it back to the file afterwards. You could in your case read the file and store it in memory as a list of strings.
|
|
|
|
|
Hi.
I am really lost in using ADO with C++. Can anyone direct me to a site with information for beginners for database access.
Thanks.
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|
|
Did you see Database section on the codeproject?
|
|
|
|
|
i hand't thought of that. Thanks
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
|
|
|
|