|
you pass 4 char* to SendMessage
but it does not take such parameters..(check the declaration Deian sent..
As you work in VB..imagin passing a string parameter "ABC" to a function that takes Long or integer..
An error will occur.
|
|
|
|
|
Whats the best way to store data against custom controls such as the font in use? Should I reserve extra bytes when registering the class or allocate a block of memory when I receive the WM_CREATE message and attach it to the window using SetProp()? Any suggestions will be gratefully received.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
I'd suggest SetProp. I recently had to deal with a custom control that I tried to wrap into a .NET control using subclassing. Nothing worked till I realized that it used the extra bytes in the window class. Since I wasn't using it's windows class, but subclassing an existing window, it worked best by changing the code to use SetProp.
That's my 2 cents, anyways.
--
Joel Lucsy
|
|
|
|
|
how do i create a dll file for compatability with either Java or Visual Basic
|
|
|
|
|
Search: C++ visual basic Dll
|
|
|
|
|
Yea thanks but none of them told me dow to get started
|
|
|
|
|
|
|
|
how do i create a exe file Visual C++ that detects the name of a file that is draged over it
Clint
|
|
|
|
|
Have a look at IDropTarget. There is a sample program on MSDN somewhere.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
|
thanks i ment your first option and how do you do this is the an example some where
|
|
|
|
|
Hi
I am plotting on the ClientDC.
Now at the end of function i want to copy the content of the ClientDc to MemDC, so that it can be used for saving image as BMP or JPG.
How to do this?
Leave your mark wherever you go
|
|
|
|
|
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
|
|
|
|