|
With open folder you mean explorer's windows? And since you tried to send Ctrl+V to the window i assume you know its handle. Try using Spy++ to see what command/message the window gets if the user selects "Paste" from the window's edit menu and then try sending the same to the window yourself, maybe it will get you what you want, maybe not, but it is worth a try. > The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hi everybody
I need to add a new item in the open with context menu of explorer.
I added a new item in the main context menu using shell extensions samples.
But can anybody tell me how to get the handle of Open With context menu so that i can add my items to it.
Thanks in advance.
Regards
Deepumodified on Thursday, February 11, 2010 8:04 AM
|
|
|
|
|
|
|
Hi,
I have an application which is in pure c, I want to communicate through my MFC application. I looked the code of that application, some message are there like SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP. What it means?
And if I send message from my application to that application how can I achieve that.
|
|
|
|
|
When communicating with another application, you should first register a window message (see RegisterWindowMessage) and then use PostMessage (don't use SendMessage ).
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]
|
|
|
|
|
john5632 wrote: some message are there like SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONUP. What it means?
These are Windows messages which are sent in response to user actions. There are many messages all with unique values which tell the application what function is being requested. See the MSDN documentation for full details of the ones that you are interested in.
john5632 wrote: And if I send message from my application to that application how can I achieve that.
Your question is not very clear, perhaps you could try to reword it. You can send messages between applications by the SendMessage() or PostMessage() functions, but the full answer depends on what you are trying to achieve.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
If you want the other application to process the message and return a result (an LRESULT ) to you, then use SendMessage .
Otherwise, use PostMessage as already stated.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hi
I Execute the following sql statement successfully for a Database connected to my CDaoDatabse Object.
CREATE TABLE Scores (
StudentCode Text(9) NOT NULL,
CourseCode Text(7) NOT NULL,
SemesterCode Text(3) NOT NULL,
Score Double
);
CREATE TABLE Courses (
CourseCode Text(7) NOT NULL,
CourseName Memo NOT NULL,
CourseTypeID Integer NOT NULL,
CourseCategoryID Integer NOT NULL
);
ALTER TABLE Scores ADD CONSTRAINT PK_Grades
PRIMARY KEY (StudentCode, CourseCode, SemesterCode);
ALTER TABLE Courses ADD CONSTRAINT PK_Courses
PRIMARY KEY (CourseCode);
ALTER TABLE Courses
ADD CONSTRAINT UQ_Courses_CourseCode UNIQUE (CourseCode);
But I Get Error on this satement that is at the end of my execution list.
ALTER TABLE Scores ADD CONSTRAINT FK_Scores_Courses
FOREIGN KEY (CourseCode) REFERENCES Courses (CourseCode)
ON UPDATE CASCADE;
Please Tell Me the Problem
|
|
|
|
|
What error do you get?
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]
|
|
|
|
|
Syntax error in CONSTRAINT clause.
|
|
|
|
|
hi guys,
In my current assignment, i am looking to print watermark on the page as per the type of the page, say on the introduction page i wish a watermark of "INTRODUCTION". i firstly tried some googling. but so far no lucks ..
I guess i am clear what i need..
any body please help..HARSH
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.
|
|
|
|
|
Well I guess the best thing to do would be to add some code to your print routine to overlay your printed page with the word "INTRODUCTION" in light gray or some other colour of your choosing. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hi,
First of all thanx replying Richard,
Well if i'll pring or draw something and then if something will come over it, it will be gone. Even Suppose I'll make the impression of "INTRODUCTION" on the DC and in some next step i'll draw a text like "abc<10-20spaces>xyz", what ever will be written bellow the white spaces will again be gone..
I hope you got the problemHARSH
Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning.
|
|
|
|
|
You can draw the superimposed text last, using a mode that only draws the text but keep the background transparent. SetBkMode(TRANSPARENT) will do the trick.
The above superimposed text will block whatever behind it because the superimposed text is opaque. To make a true superimposed text, you have to make them semi-transparent. To achieve this, you need to use a certain way to blend the text to the existing drawings. This is more complicated. You may need to create a couple of image buffers to conduct these operations, and print the final result.
-modification-
As Richard MacCutchan pointed out, you can print your superimposed text first, then render everything else. When you render text, make sure the background mode is set to transparent. That way, only the text itself is rendered, the background will be see-through.
Your problem is probably caused by the fact that the background mode is not set to transparent. Check the documentation out: http://msdn.microsoft.com/en-us/library/dd162965(VS.85).aspx[^]modified on Thursday, February 11, 2010 9:37 AM
|
|
|
|
|
Harsh Shankar wrote: what ever will be written bellow the white spaces will again be gone..
I don't think this is strictly true; when you print on a DC only the colours are rendered so all white space remains as it was. Thus if you print your watermark first and then your text on top, only the parts of the watermark that get overprinted will disappear. Why not try a small test to see what results you might get?txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Hello,
I need to look up the exact addresses where .text, .data and other sections starts in the PE Image. What Image base address and how much should be added to get the inner sections(i.e objects) e.g .edata,.idata and all other.
What tracer or debugger would give the exact picture which I needed.
Regards
Muhammad Usman Khalilmodified on Thursday, February 11, 2010 6:55 AM
|
|
|
|
|
|
Hi I am using a CListBox control in my dialog.
I have set the Horizontal Scroll bar property to TRUE but I am not getting horizontal scroll bar . String items added are hiding in the CListBox.
Please tell me how can I do this? Thanks in advance. ......
|
|
|
|
|
Have you checked the control's horizontal extent?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
When you add a list box with a horizontal scroll bar to a dialog box using MFC classes, the scroll bar will not automatically appear in your application.
To make the scroll bar appear
Set a maximum width for the widest element by calling CListBox::SetHorizontalExtent in your code.
Without this value set, the scroll bar will not appear, even when the items in the list box are wider than the box.
void SetHorizontalExtent(
int cxExtent
);
http://msdn.microsoft.com/en-us/library/1s0xed6b(VS.80).aspx
Cheers,
BIJU
|
|
|
|
|
Thanks a lot ...its really working...
|
|
|
|
|
Guys,
Anyone one can let me know something about MFC, Give me some brief explanation and also let me know where can i get good material for MFC.
And also let me know the some good books for VC++, Including samples on controls also.
|
|
|
|
|
Guys,
Anyone one can let me know something about MFC, Give me some brief explanation and also let me know where can i get good material for MFC.
And also let me know the some good books for VC++, Including samples on controls also.
|
|
|
|
|