|
Like On-Screen Keyboard,I want my app don't get focus but still receving mouse input.
You can test On-screen keyboard in Windows XP,or 2k.
Because I use SendInput function to act on Windows Media Player,I must activate it when i click button on my app.Otherwise,my program itself receive my commands.And it's not the result i expect.
Please help me.I think much but i can't.
|
|
|
|
|
In the Window Procedure, do the following:
<br />
case WM_NCACTIVATE:<br />
return DefWindowProc(hWnd, message, (WPARAM)0, lParam);<br />
<br />
case WM_CREATE:<br />
SetWindowPos(hWnd, HWND_TOPMOST, 0,0,0,0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);<br />
Note: the first time the window is displayed, you would need to take away focus from it. after that, it should work as u need.
HTH
Bikram Singh
|
|
|
|
|
|
Thanks for the info!
I tried to use it, but it does not seem to work. Also, when i try and drag the window around, its "jumpy" - like when your CPU utilization is very high and you're trying to move a window...
Any idea about how to fix this problem?
Bikram Singh
|
|
|
|
|
Hi,
In my MDI application i am opening say some 5 MDI childs...I click on one of the child and this message is being send to some other application...From this second application my First MDI application receives a message which should be sent to the correct view on which i have clicked ..This view may not be the currently active view.How can i identify the correct view?
|
|
|
|
|
By sending the view HWND (the m_hWnd member) along with the message.
|
|
|
|
|
I try CFileFinder to list all the files in a specified folder, but it doesn't work. Please help me.
|
|
|
|
|
You should place your codes snippet in order for people to help you.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
|
pingpongpp wrote:
...but it doesn't work.
Define "doesn't work."
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Does anybody know how to use LIKE correctly. I use "Select * from transaction where myDate LIKE '%1/6/04%'" But it didn`t word. The myDate is a text.
|
|
|
|
|
I think the way you use LIKE is correct but the field type of your myDate might be causing the problem. Is it a VARCHAR or TEXT type? If it is a DATE type, probably this won't work. You need something like this
result.Format(" date '%4d-%02d-%02d' ",d.GetYear(),d.GetMonth(),d.GetDay());
and use = or >= instead.
So your SQL statement should be
SELECT * FROM PO WHERE PO.PURCHASED_DATE = date '1997-12-31'
The example SQL statement above is from PL-SQL of the Oracle but should be compatible on T-SQL and the rest.
Hope this helps
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Hi!
I'm drawing in a custom control, which derives from CWnd. I placed the custom control inside a dialog, and the custom control is a member variable of the dialog.
When i click on the custom control, i draw a line, from that point to 10 pixels to the right. The problem is that if i drop the line on the right side of the control, a part of the line gets drawn in the dialog.
Is there any way to prevent it drawing in the dialog, or outside the control?
or how do i get the size of the custom control so i can validate if some part ofthe line will be drawn outside the control?
thanks!!
|
|
|
|
|
GetClientRect returns the size of the dialog.
|
|
|
|
|
This has probably been asked before...
Is it possible to set the text of a window (happens to be an edit control) owned by another app (I have a valid target CWnd* )? SetWindowText() and PostMessage() seems to work only if the window is owned by the same thread.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
|
How about PostThreadMessage() ?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Unfortunately the method fails with error 1159 (The message can be used only with synchronous operations). Too bad there's no SendThreadMessage(). :)
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hi,
Another one of my newbie problems , and this time I just don't know where I should start. My MFC-app has a rebar with two bands. One is the "standard" toolbar, which is working fine. The other one uses a small dialog resource, which in turn contains two controls besides a couple of static labels, a checkbox and a combo-box.
The thing is, I need to be able to set and get the values in these controls, and I quite frankly don't have a clue on where to start. I've created a seperate class for the dialog resource, and created a couple of control variables in this class.
Now, I need to be able to set the values for these controls, basically when the window opens (SDI + CScrollView)... I've tried a couple of things, which, well..., didn't work Any clues on how to do this?
Another thing is getting the values, I need to do this when drawing my view - the controls defines how the view should be drawn. I can probably do this knowing the answer to my last question, but... how??
I realize that this isn't exactly the hardest questions being asked around here, so thank you for your time and help.
Regards,
Jorgen E.
|
|
|
|
|
>> I've created a seperate class for the dialog resource,
Have you worked with MFC CDialog based classes before? Have you used MFC's DDX mechanism to get/set values from a CDialog class?
If not you should consider going through a turtorial like Scribble or something.
-pete
|
|
|
|
|
Well, I have worked with them, but not enough it seems :P I'll take another look at scribble!
Assuming I didn't confuse you too much with my question, and you understood me: any more ideas? Anything is appreciated!
- J
|
|
|
|
|
how many different email servers are normally used?
i.e. smtp, mimi etc.
what are main different between them?
cheers
includeh10
|
|
|
|
|
I think you want the General Discussions forum.
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|
|
what does it mean?
includeh10
|
|
|
|
|
includeh10 wrote:
what does it mean?
I think that your inquiry is best posted in the "General Discussions" forum, not in the "Visual C++" forum as this inquiry does not reference MFC or C++.
Happy Programming and God Bless!
Internet::WWW::CodeProject::bneacetp
|
|
|
|