|
|
|
toxcct wrote: Fastest Nose Contest
Opps, i forget the name of contest
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Am working with an MDI application with multiple Views and mutiple doc/views. Have a number of views in Property Pages and have Property Pages with a variety of controls. Would like to combine on one property sheet a number of controls and a CRichEditView of one of the Doc/views instantiated at startup (in the app).
How do I display a smaller frame and view within a single property page that has other controls (buttons, combo-box, other edit controls, etc )
|
|
|
|
|
Hi
I don't know what do you want exacty?
Property page is similar than Dialog window. So the same way you can add frames and controls inside the property page also.
then you should add all the property pages to property sheet class.
regards
Vallikumar A
|
|
|
|
|
Is it possible to change the boring Icon when you create an ActiveX control in VS 7.1
The default - rectangle with circle is pants!
|
|
|
|
|
|
Select the resource->Bitmap->IDB_ATLCON
Here you can draw a new Bitmap or import a bitmap file.
And delete the existing IDB_ATLCON and give the same name to new Bitmap.
regards
Vallikumar A
|
|
|
|
|
This resource does not exist in either project that created or used the ActiveX.
The default Icon that appears in the ToolBox is OCX (thats the project using the ActiveX), but get the silly Rectangle with cirle on the dialog at the design time.
|
|
|
|
|
I want to make a program which do a fake input. It sounds a foolish program, but I want to make it for a special purpose. I run an application (ex. a game like Age of Empire, Starcraft, so on). And then I run my program. My program create a window (use CreateWindowEx()), and now, I want anything I do on this window will do on that application (I move the mouse, the mouse(pointer) in that application move, I click the mouse, the mouse in that application click, ...).
I tried to get a handle of that application and send message to it (use FindWindowEx() and SendMessage() ) but nothing happened. I also tried SendInput() and AttachThreadInput(), but I failed too.
It may be really foolish, but my program need to do a task like it. Could you help me solve this problem ?
-- modified at 4:38 Wednesday 18th January, 2006
|
|
|
|
|
i dont know the exact solution,
the games like these use directinput, it is part of the DirectX package.
-Prakash
|
|
|
|
|
The game is not very important, I mean any application, such as Notepad, Paint, Wordpad ....
|
|
|
|
|
|
It didnt work at all. I'm sure send message which use SendMessage successfully ( try WM_CLOSE and it worked). But if try to send message WM_MOUSEMOVE, WM_LBUTTONDOWN or WM_KEYDOWN nothing happen. I used Spy++ and did a copy, but nothing happened. That's why I cant understand.
|
|
|
|
|
I feel like I've answered this question at least three times but here we go again. Faking input using the PostMessage or PostMessage API is a hit and miss affair - It will work for some applications and not so well, if at all, with others. The reason is that there is more information associated with a message other then the HWND , the message, the WPARAM and the LPARAM . To access this extra information you use APIs such as GetMessagePos and GetMessageTime . Then there is software that calls functions such as GetAsyncKeyState (this also works for mouse buttons).
This is the reason for the SendInput API - This is what you use to fake input - Unless you're faking for a particular app and you know the message techniques work.
If the application uses DirectInput I'm not sure how you would proceed and if the SendInput will work. This would probably only be an issue for games.
Steve
|
|
|
|
|
I'm not sure on the details but this site has something to say (and something to offer) on DirectInput and faking input.
Steve
|
|
|
|
|
I need to display a file encoded in EUC-JA in an edit control. The app is unicode and the edit control uses Arial MS Unicode, but the file is printed as garbage.
Can anyone point me in the right direction?
Thanx.
|
|
|
|
|
hi
refer the links
http://www.codeproject.com/cpp/unicode.asp
http://www.codeguru.com/forum/showthread.php?t=326350
regards
Vallikumar A
|
|
|
|
|
Not quite what I'm looking for but thanks anyway for taking the time.
|
|
|
|
|
Hi everybody... did any of you work with GetTextExtentPoint32 or GetTextMetrics? 'cause I'm having a weird issue with this stuff.
I got a BOLD font... created with CreateFont and I specified at Weight the value 900 which should be ultra bold... Black. But when I call GetTextMetrics to retrieve it's data, the tmOverhang member is always 0.
<br />
hdcControl = GetDC(hwndControl);<br />
GetTextMetrics(hdcControl, &tmControl);<br />
If I do then GetTextExtentPoint32 on my text (it's about 20 letters), it will erroneously give me a bigger pixel size than I need (with a surplus of about 30 pixels). So I guess I should use tmOverhang to counter-act that surplus, but how can I do it if tmOverhang is always 0!?
Thank you ::- ).
|
|
|
|
|
|
Calculating its total width in pixels. GetTextExtentPoint32 returns stupid values.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
Problem solved, don't bother with it any more (it was a problem between the chair and the keyboard).
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
|
How do you get the ntfs permissions of a share, i have used NetShareEnum to get the file share permissions and the other information about the shares.
Any help?
Kelvin Chikomo
|
|
|
|