|
If an user starts a drag operation from my appl. to another application (explorer, desktop,...),
how does my appl. knows the target destination ?
For example, from within WinZip, you can drag files to explorer or on the desktop or anywhere else.
But how does WinZip knows the target destination ?
The files have to be unzipped, so WinZip needs to know the destination path?
Thx
|
|
|
|
|
IDataObject and IDropSource are the key ingredients here. You'll need to implement these if you want your application to support drag'n'drop into other applications. Also check out the Win32 ::DoDragDrop( ) API.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
I've created a dialog based application. The application's exe name is mydialog . Now I want to start it using command line parameters. Can any one tell me how ??
|
|
|
|
|
Sorry, but is this your first program ?
1. open DOS Box.
2. Type mydialog
If you have parameters f.ex:
mydialog /Parameter1
|
|
|
|
|
Pit M. wrote:
Sorry, but is this your first program ?
No dear, you didn't get my question properly. I know ho to give comand line parameters, but what i want to ask that how can we retrieve in our MFC application
|
|
|
|
|
Hi,
use GetCommandLine() WIN32 API.
Dudi
|
|
|
|
|
I created a CTabCtrl control and I succeeded in this, but the problem is that when I place any control over the tab, it is not considered as part of tab, it still react separately as not part of the tab control. My question is am I missing something or a certain tab style that makes that tab a container for any controls placed over it.
|
|
|
|
|
A CTabCtrl is a standalone control, not a container. Think of it as a fancy radio button. Your code needs to respond to tab selection and display appropriate controls at the right time. I group my controls ("tabs") in modeless dialogs, which I show/hide in response to the user's selection.
See this thread for details.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hello,
INTRODUCTION:
I'm trying to get autosizing property sheets, and what I do is to place a CStatic in the dialog in which I want the property sheet inserted.
I resize the CStatic when I resize the dialog and I send the WM_SIZE message to the Property sheet too.
In the property sheet WM_SIZE handler I get it's parent rectangle and call a SetWindowPos in order to resize the property sheet.
QUESTION:
Why the size of the rectangle of the Cstatic don't change? I Get always the same size.
As always thank you in advance...
CODE USED:
in the WM_SIZE handler of the property sheet.
<br />
CRect rectClientPare;<br />
this->GetParent()->GetClientRect(&rectClientPare);<br />
this->SetWindowPos(NULL,2,0,rectClientPare.Width(),rectClientPare.Height(),SWP_NOZORDER | SWP_NOACTIVATE);<br />
|
|
|
|
|
To resize the static control you should either call MoveWindow or SetWindowPos - you should not send it a WM_SIZE message.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
I get lots of warnings when working with STL in debug. In fact I always get the same:
warning C4786: ... identifier was truncated to '255' characters in the debug information
I thought that including a pragma like
#pragma warning(disable: 4786)
would the twist. But I still get the warnings. Anybody has a (miracle) solution?
Jonathan de Halleux, Belgium.
|
|
|
|
|
Put the #pragma before including any STL header.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
Where do you have to insert it ?
Jonathan de Halleux, Belgium.
|
|
|
|
|
check this[^] out.
It is freeware with source-code (pearl script) and works like a charm.
For switching off warnings via a #pragma , please read MSKnowledgebase entry Q167355.
- It simply does not work.
|
|
|
|
|
Thanks for the tip ! It's great !
Jonathan de Halleux, Belgium.
|
|
|
|
|
I've created an application in VC++. I subclassed Rich text box so that it can display my custom fonts from right to left and do the characters joining.
Now i want to do the same with the existing MSN messenger text boxes so that it can also show my custom fonts. For this i surely need to create custom add-in. Any help in this regard is welcome.
Thanks
|
|
|
|
|
|
I am trying to write a "Hell-O-world plus plus!!!!" Program and I have to turn it into my professore at coledge for my programing computers class in 5.5 hours and I have'not done any of the searching on it. I tried the later
!Hell-o-world!
<>"Hell-o-world" is my favorite<>
::Hell: ::WorlD^^
{This computer that I work at sucks!} Sorry Profesore
End CODE
Every time I run it; it saaid to many eror!?!?!?!?!?
WHAT DO I DO???????????
HLP PLZZZZZZZZZZZZZZZZ!!!!!!!!!!!!!!!!!!!!!!!!!!!
PS. I no you guys are like way into this stuf and you no it way better than i do, but i need to get a ok grade to pas this class, so if you guyz could please help a future computer dude out and just send me some good "CODE" i would be thankfull!!!!!!!!!!!!!!!!!!
|
|
|
|
|
HAHAHAHAHAHAHA !!!!! Man, if you want to troll us, then at least make it believable. No-one is this stupid, nor would any professor ever ask anyone to turn in a 'hello world' program.
Besides which, VC++ generates them for free.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
DOOD!!!!!!!!! I need help with my stuf! I can't pass coledge if I dont PASS this clas!!!!! I will be in very much need of your helps PLZ!!!!!!!!
Which program was teh most corect!!??????
PS. Are u saying my schoool is taht bad?!!!!?
|
|
|
|
|
I havnt read anything or tryied to do anything yet. I opoend the Visual CPLUSPLUS and started typing hoping it would work! But it faile ond me with 2 many erorRR!!!!! Teh Visual!! SUKS!!!!!!!
|
|
|
|
|
Like I said, give it a rest. You'll be sober in the morning, then imagine how dumb you will feel.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Hey Chris... since you are the first person I've seen use the word 'troll' as a verb... let me ask you this... what does it mean in reference to posting? and yeah... i realize this post was absurd, but I'm wondering what is actually meant by the word "troll/ing"
Peace
-Mel
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
It means this moron is pretending to be something he is not in order to try and get a response. The post is not genuine, it's just designed to get people worked up.
Five bucks says he is drunk.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|