|
Rajesh R Subramanian wrote: In Mumbai, we write an MFC program for that.
Strange enough, in Rome we do quite the same.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Strange enough, in Rome we do quite the same.
But here story is different we dont need to write it,it can be writes itself.
|
|
|
|
|
CPallini wrote: Strange enough, in Rome we do quite the same.
How Shocking. This is quite an amazing coincidence if you ask me.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Ii dependes to your question do you need to use of ShellExecute or you need to CFile class with EDitctrl ro RichEdit?
|
|
|
|
|
Hi all,
I am using CMenu,
I want to rearrange the menu Items something like Drag and Drop, So can I get any Notification for Drag and Drop from CMenu.
or is there any other way for doing this.. ?
Please provide some example if any buddy can.
|
|
|
|
|
You can do this sort of thing with the windows start menu.
But they don't actually use a windows menu...
So, if even the windows shell team need to make their own menu-lookalike window to do this, I'd assume you can't with the built in menu either.
Looks like you have a lot of work in front of you...
Just how much do you need this feature? Could you have a customise dialog box where you rearrange the order of the menu, *then* change the menu, rather than doing it on the fly?
Iain.
|
|
|
|
|
Hello,
I created a MFC-based ActiveX Control. My goal is to paint some rectangles on dc.
And when user clicks on dc area, I get the clicked point coordinate and adjudge the position of user click is in the rectangles or not.
If the click position is in the rectangles, I jumped a dialog window. If the click is out of the rectangles, nothing happened.
I used OnLButtonDown() to get the clicked point. But strange thing happened.
If I test this ActiveX Unit in the ActiveX Control Test Container, OnLButtonDown() works well and result is the expected result.
But if I packed .ocx file into .cab file and used IE to test, OnLButtonDown() failed. This method didn't be executed when I clicked on the dc area.
The creation step which I referenced is this : http://www.codeproject.com/KB/COM/CompleteActiveX.aspx
I followed the step to create the ActiveX. My control setting of creation step is the same as figure 2. of the referenced html page.
Create control based On : choose STATIC
The option "Activates when visible" and "Flicker-free activation " are checked, others are not checked.
Does anybody can help me to solve this problem ?
My environment : VS2005 SP1 + MS Platform SDK 2003 SP1 + Vista SP1
Thanks
|
|
|
|
|
Hi All
How can i export data n excel?i search forum for export data in excel but i haven't got any example of VC++.Plz help me
Thanks in advance
|
|
|
|
|
|
|
try this: http://xlw.sourceforge.net/
|
|
|
|
|
If you just want to export some text data, then write it as comma separated value (.csv) file . Check this thread[^] for more info.
[Edit]
Or you want to read or export data from excel file? You're question seems confusing.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi want to develope my own antivirus software . can any one suggest me with type of programming I neeed and any help regarding this on windows system .
Trioum
|
|
|
|
|
You have a long way(you must be know about registry,memory,files,tcp/ip,processes/threads,and other info).
Virus Tutorial[^].
|
|
|
|
|
I have good experience in vc++ programming and good knowledge of registry,memory,files tcpip threads
your link is not sufficient . can you share me more info
Trioum
|
|
|
|
|
You must be know c++ very good so if we suppose your knowledge is good in this sphere do you know security alert about some functions for example you want to use of wsprintf Function[^] or signature of viruses?
|
|
|
|
|
I know about the wsprintf but not about the signature of the virus
Trioum
|
|
|
|
|
Person in shop: Excuse me, how much is that huge diamond ring?
Shopkeeper: If you have to ask, you can't afford it.
Same sort of answer to your question... (maybe a little more polite!)
There are so many different (and hard) things you need to know, and if you're starting from zero (even a skilled zero), a simple answer here won;t help.
I wish you luck though!
Iain.
|
|
|
|
|
trioum wrote: Hi want to develope my own antivirus software . can any one suggest me with type of programming I neeed and any help regarding this on windows system .
The best way to go would be to refer to an open source anti-virus[^] program.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
i have a dialog based application. i want to display a popup menu when user clicks on button on a dialog and user should be able to select any of the items(from popped up menus after clicking on button).
for example:in code project when user moves mouse on message boards and when user clicks on c++/mfc then it will direct to forum for c++/mfc. how can i do this?
thanks in advance.
|
|
|
|
|
You can use of WM_CONTEXTMENU.
|
|
|
|
|
could u plz explain with some demo examples?
|
|
|
|
|
|
Anjali Patil wrote: i have a dialog based application. i want to display a popup menu when user clicks on button on a dialog and user should be able to select any of the items(from popped up menus after clicking on button).
Check out this simple tutorial[^].
But the tutorial explains how to display popup menu when you right click on a button. Since you want to show your menu during button click, I'll explain how to do it, in the context of the tutorial. Just add the button click event handler, then call the OnContextMenu() explained in the tutorial. Hope it helps.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
hi Jijo raj,
thank you for helping me.
still it is not working. i did as:
afx_msg void OnContextMenu(CWnd *pWnd,CPoint pos);
ON_BN_CLICKED(IDC_BUTTON1, OnContextMenu)
void IRCNewSim::OnContextMenu(CWnd *pWnd,CPoint pos)
{
// CMessage1 ob1;
// ob1.DoModal();
CMenu mnuPopupSubmit;
mnuPopupSubmit.LoadMenu(IDR_MENU2);
// Get a pointer to the button
CButton *pButton;
pButton = reinterpret_cast<CButton *>(GetDlgItem(IDC_BUTTON1));
// Find the rectangle around the button
CRect rectSubmitButton;
pButton->GetWindowRect(&rectSubmitButton);
// Get a pointer to the first item of the menu
CMenu *mnuPopupMenu = mnuPopupSubmit.GetSubMenu(0);
ASSERT(mnuPopupMenu);
// Find out if the user right-clicked the button
// because we are interested only in the button
if( rectSubmitButton.PtInRect(point) ) // Since the user right-clicked the button, display the context menu
mnuPopupMenu->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this);
}
mnuPopupMenu is getting NULL value
plz help me
|
|
|
|