I used the FindWindowEx to get the handle of the edit text box, but what I actually need to enter a text in it is its ID which is of type int. How do I find this ID then?
Type: Posts; User: leojose
I used the FindWindowEx to get the handle of the edit text box, but what I actually need to enter a text in it is its ID which is of type int. How do I find this ID then?
The window is not created by me, so I don't have the handle to the edit control (only the handle to window). Can I still use SetDlgItemText?
Hi all,
Is there any API that will enable me to enter a string in the text area of a dialog box?
As shown in the attached figure, I would like to enter the text c:\temp.ps in the text area as and...
Hi all,
I would like to programmatically get the current status of a printer.
What I tried was to use GetPrinter() to load the PRINTER_INFO_2 structure into a buffer say pi2. Now I monitor the...
Thanks for verifying the source of the problem anonytmouse
Luckily for me, I am using a flash application, and unlike IE it does update on a WM_DEVMODECHANGE. Hence it solve my problem :)
I think you are right, the code I posted only works on a 'local' level
Exactly...and the link you provided was really useful! It did change the printer settings as desired
But there is a...
I am looking for a method to change the Page Layout (Landscape or Portrait) property of a printer programmatically.
I got this piece of code from somewhere which seems to run as expected. It sets...
Hi all,
What I have is a .inf and .sys file of a Camera driver. I would like to install it on my WinXP machine programmatically.
Earlier, I managed to install a printer driver (.inf and .ppd...
Hi all,
I would like to develop an application in Windows (using VC++) that will prevent the Print Dialog box from appearing whenever a print command is issued from another application. This other...
Hi Ken,
Your suggestion worked!
actually i set the value within Project settings...
Thanks
HI all,
I am trying to use the function SetLayeredWindowAttributes() but unfortunately MSVC doesn't recognize it
I use VC++v6.0 with Windows Server 2003 SP1 SDK installed.
i have also include...
Summary:
When we issue a print command to a window, the very first thing that appears is a selection window named 'Print' in which we select the printer that we want to use.(I'm using a Virtual...
yes...i did try searching at Google first but as I couldn't find one I decided to post in the forum. I did run into some freewares and applications (swf2avi) that convert swf to bmp,jpg etc. but I...
Hi all,
Are there any source codes available in C/C++ that can convert a .swf file to .bmp?
I have managed to capture contents of hidden windows and dialog boxes. But just as I had feared, the technique used doesn't help me in capturing any 'Shockwave Flash Object' that has been added to...
alright, here's the update
As I will be generating my own window, I decided to go with technique number 1 as mentioned in that article.
It worked just as I wanted, but there are few issues left...
Hey anonytmouse...
I think this might contain just what I want!
Will try it and come back to you in a couple of days (day off at office :))
Hi all,
This is what I have:
A program that will take the handle of a window that is in the foreground and then take a printout (in postscript format) of whatever is visible in that window.
...
Just like we add buttons,picture boxes etc. I am adding a Shockwave Flash Object(by including ocx component) to a Form. I then select a .swf file and link it with this Flash object. My aim is then to...
Hello All,
I am a newbie into .net and want some help in writing a code that will allow me to run an swf file when I drag n drop a picturebox on it.
I saw that in flash components properties,...
hmm...it works fine. Will try it out in my code... although my method also gives the same results.
But there was something I was really hoping that this code would be able do....to restore an...
Yes, I did use CopyCursor, as it is stated in MSDN that SetSystemCursor deletes the handle of the source. But even that didn't work (surprisingly!). That is how I came to this conclusion that...
Hi all,
My application required me to monitor the mouse events and then either hide it or show during certain events. I have managed to succesfully do this using the SetWindowsHookEx() to capture...
The funny thing about LoadCursor is that it actually acquires the 'handle' of the cursor. So if you manage to change the cursor itself using SetSystemCursor(), then there is no way you can get it...
Hi all,
Can somebody suggest me, how after having used the SetSystemCursor() to change a default cursor, can I get the original cursor back?
hblank = CreateCursor( NULL, 0, 0, 32, 32,...