|
what the hell is a MemDC?
Don't try it, just do it!
|
|
|
|
|
A simple BitBlt will do the trick. Just be sure your MemDC has a bitmap selected into it that is the same size and bit depth as your ClientDC.
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks Arends
Well what my doubt with bitblt was that it copies from the bitmap to the DC(correct me if i am wrong)
So the main problem is that can the bitblt will work for ClientDC.
Leave your mark wherever you go
|
|
|
|
|
BitBlt copies data from one device context's drawing surface to another device context's drawing surface. CClientDC's drawing surface is the portion of the screen contained in your window, and your MemDC's drawing surface is the bitmap you select into it. A drawing surface can be anything: a memory bitmap, the monitor, a printer, a plotter, etc.
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
Customize Find and Replace in MSHTML Page at runtime
senmah
|
|
|
|
|
Hi,
I'm trying to obtain the text within CStatic control, but I can't achieve this using the WM_GETTEXT message. It returns the caption of the control, but not the actual text inside it (I'm trying to retrieve the text from external app). Anyone had the same problem?
Thanks,
D.
|
|
|
|
|
hi Dear...
Hint is use...Function: GetDlgItemText()
How to use this: THIS is your duty to find out..My duty is to show you direction...
OK! Good Bye..Have a Nice Life...
---Sumit Kapoor---
|
|
|
|
|
I've already used GetDlgItemText and it fails in my case. I've also used GetWindowText , but it fails too. Both don't seem to work for me.
|
|
|
|
|
Hi...
Try this... little lengthy..but working...
1. Map this with CString using class wizard..
2. try this code...
----------------------------------
CString strTarget;
char charName[25];
GetDlgItemText(IDC_EDIT_NAME,charName, 25);
strTartget.Format("%s",charName);
--------------------
3. I'm so busy..so can't help any more.. try to find out him/herSelf...
Thanks..
---Sumit Kapoor---
|
|
|
|
|
Well,
thanks for the help, but you probably didn't read the following text in my first message
(I'm trying to retrieve the text from external app)
I know how to get text from my app, I'm trying to get the contents of static control of external program. ::GetDlgItem() and ::GetDlgItemText() return the caption of the control but NOT the content. I need the content.
Thanks
|
|
|
|
|
Strange! The only text a static text control has is the text it is trying to display. Therefore, if you send a WM_GETTEXT, that is the text that should be returned.
Just to be sure I know what I am talking about, I assigned a unique ID to a static control in a dialog box. Then used both GetDlgItemText() and
GetWindowText() to retreive the text inside the static text control.
INTP
|
|
|
|
|
Thanks for the reply Mr. Shaw,
Yes, it's strange, according to MSDN, I'm getting the contents of the static with WM_GETTEXT, but unfortunately when I try to get the text of mIRC Query, Channel or Status windows, which use Static control to display the incoming text, I get nothing. I even tried to set the text of the window, and all it happens after using SetWindowText and SetDlgItemText is - I set some caption over there, which after that I retrieve successfully, but this is not the contents of the window. For example, I can set the text of the Edit control of the mIRC query - the one they use for typing the outgoing message, and it works great, but it does not work for the static class (the incoming messages).
Thanks for the time spent on my problem,
D.
|
|
|
|
|
Hi All,
I am a student. I think i would like to buy the acedemic version of visual studio 2003.
Right now , i am only learning C, but i want to progress onto C++ and Java.
I am particularly intersted in working with the little handheld devices as well.
I have heard that there will be a new version comming out soon.
Is it better to wait at this point for me?
Does anyone know when the new version of Visual Studio is comming out?
Also, if there are any students out there that already have the acedemic version and could tell me how they are finding it please?
Thanks very much
"i'm on me Learner's mate"
|
|
|
|
|
The Academic licenses are available for schools or institutions only. If your school is part of this program, you'll have access to the Visual Studio version 2003 Academic Edition by consulting the school's Computer Administrator.
If you're just starting C++, Visual Studio is a good choice. However, the current version 2003 is inadequate when it comes to programming for .Net Framework (Managed C++ is buggy/crappy). The version 2005 will introduce the C++/CLI Standard, which makes it very easy to use the power of C++ with the managed framework. The 2005 version is designed as a mainstream platform for Windows Longhorn programming.
But, like said, if you're starting up with C++, I suggest you go to the local library and borrow a 'Learn Visual C++ in 26 days' or something similar. These books usually come with the Standard or Educational edition of the Visual Studio version in question, so they are the most cheap and risk-free way to start using Visual Studio. When version 2005 is released, you should invest your money to it.
An alternative to all this is the MSDN Academic license, which will entitle your school's students to downloading the Academic versions of all Visual Studio products, with a limited access to the MSDN Library CD-ROMs, which, if I may add, are ESSENTIAL to coding with Visual Studio. The internal help files are just inadequate. Naturally you can read the online version of MSDN for free, but it's much easier to use the CDs as they are incorporated to the F1-help system of Visual Studio.
In conclusion, first get a free version by borrowing a book bundled with Visual Studio. When version 2005 is released, invest your money on that one, or get your school to join the MSDN Academic Alliance.
For more information about the MSDN licenses, consult the MSDN Website. For more information about the Academic Program, see the MSDN Academic Alliance website
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I have a Student edition of Visual Studio 6, and have used Borland C++, Visual C++ and Visual C++.Net and the .Net software is completely different from Borland C++ and is very different from Visual C++ 6.
Visual Basic.net has become different altogether from Visual Basic I think they've tried to make it more like Visual C++ but none of the original methods work for instance you can't have indexed arrays for buttons any more.
I think Borland C++ is better all round it would appear to work faster and seems to take up less memory.
|
|
|
|
|
I have been trying to install my application on a Laptop PC, but keep hitting a series of problems.
DLL missing etc.
I have build a Release version and a Deployment project to install it.
Currently, nothing happens when you run the application on the Laptop, having loaded all the missing DLLs, but I get the following error message if I install it on a Windows NT PC.
The procedure entry point Process32Next could not be found in the dynamic link libray KERNAL32.DLL.
Do I need to buy and use InstallSheild to deply my application?
grahamfff
|
|
|
|
|
|
I'd like to take a project that has the option of morphing a vanilla cout input option (1,2,3 or4) into lite graphics (say shapes dancing around the screen) into an .exe or .scr screensaver.
Is there a quick and dirty method to do? ->>
Switch
Case1: keep pushing button (via cout)
Case2: you're gettin' warmer (triangles,circles blinking on the screen - while awaiting numeric input)
Case3: exit input, go directly to animated screensaver written in C++ but run on, say Win XP, exiting VC++6 application
Also, is there a way to make an "interactive" screensaver in c++ that reads a pre-determined file folder looking for graphic jpegs, icons, bitmaps,etc. into an array that would then be read into the screensaver so that, upon execution, it incorporates only icons in that given folder into the screensaver?
Kept short for brevity, feel free to ? clarification.
Thanks greatly!!
". . .gonna keep on tryin' - til I reach my highest ground"
s. wonder
|
|
|
|
|
I am a beginner of VC programming ,I want to add a ToolBar on the top of FormView ,but I don't know how to realize it ,any suggestion will be appreciated!! Thank you !!!
I hope to find really programming lover and make friends with them!
any communication will be appreciated!!!
|
|
|
|
|
Use CFrameWnd class to create a Frame..then place a Toolbar in that frame...
Open FormView in that frame....
OK! good Bye..Keep search..Hint is front of you...
---Sumit Kapoor---
|
|
|
|
|
thanks..bye
---Sumit Kapoor---
|
|
|
|
|
Hi..all..
Can anybody tell me How to Dowload File using http connection..?
Thanks if you can suggest any solution or any example class.
I'm using vc++6.0
OK! Bye...
---Sumit Kapoor---
|
|
|
|
|
Do an article search and you'll find several articles about this.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
You can use URLDownloadToFile() to easily download a file via HTTP. If you want to do interesting things with the file's content (eg: parse it and extract information), check out this[^] aticle.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
OK, I seem to have contracted the most severe case of nubyism in my attempt to finnally learn to program windows.
About a month ago I bought myself VC++.Net thinking i could whip up a quick and simple interface for my Robot. I've been at it since then and still have no clue. I've done tute after tute, though most are for VC++6 and don't seem to translate well to .NET. I've borrowed the only windows programming book in the Uni library "Beginnning Visual C++ 6" and while all this is good and has taught me alot, I still seem to be missing some fundamental concetuality.
I've been able to program C++ for years so this is not the problem. But to explain my problem I'll walk through and example.
I've used the App wizard to generate a Dialog Based MFC App.
I drop a scroll bar on the Dialog
I look to add a new event and bang! I hit a brick wall- repeatedly
what the hell is with NM_THEMECHANGED????? It's the only event i can get.
How do i do anything at all with my scrollbar????
Ragman
|
|
|
|