|
when you run onctlcolor the background is blue and when you use pDC->settextcolor() you can change color from static
but i think you need to WM_CTLCOLORSTATIC for static i think if you use this event
your problem is solve
whitesky
|
|
|
|
|
i got it by using
pDC->SetBkMode( TRANSPARENT);
thank u very much,WHITESKY.
ram.
|
|
|
|
|
Hi folks!
I have an MFC activeX control where I want to send an array of UDT (structure). My problem is that I have to use VARIANT compatible data types. As far as I know this means that I should wrap a SafeArray into a Variant and send a pointer to this variant to the client.
My problem is how can I add elements of a UDT to this array in such a way that when the client recieves the array he can easily extract the elements of the UDT one by one.
My UDT or structure looks like this;
struct product {
int weight;
float price;
} ;
Hope I made my problem clear!
Thanks for any help!
|
|
|
|
|
Is there anyone that knows, please help me out!
|
|
|
|
|
Hi all,
I have a Tree View and List View as a Splitter View. I have menus for both of them i want to implement Custum Command Routing both of the Views.
Please Help me out.
uday.
|
|
|
|
|
Hi
Can i recieve my msn messenger contact list by providing it my username and password by using my own messenger application?
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
|
hi all plz tell me ..........
i want to know that i hve open certain windows and now i want to make a button on which when i click all opened windos are minimized
and a made second button on which when i click all windows are maximized
plz tell me how i can do this
plz send me example for this................
Ashish Dogra
MCA
Noida
|
|
|
|
|
EnumWindows()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
PostMessage(FindWindow("Shell_TrayWnd", NULL), WM_COMMAND,<br />
MAKELONG(415, 0), 0);<br />
<br />
PostMessage(FindWindow("Shell_TrayWnd", NULL), WM_COMMAND,<br />
MAKELONG(416, 0), 0);
reference : http://www.borngeek.com/coding/window/minimize_all.html[^]
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
thanks sir but as i try this an error that postmessage will not take four parameters will appear
plz tell me
Ashish Dogra
MCA
Noida
|
|
|
|
|
try Using ::PostMessage
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Replace the above code with this.
::PostMessage(FindWindow("Shell_TrayWnd", NULL)->GetSafeHwnd(), WM_COMMAND,MAKELONG(415, 0), 0);<br />
<br />
::PostMessage(FindWindow("Shell_TrayWnd", NULL)->GetSafeHwnd(), WM_COMMAND,MAKELONG(416, 0), 0);
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
sir plz tell me
sir as u try this code iwill not giving any error
but sir as i run my application and open windows and then i press the button
it will minimisze all now to maximize telme how
Ashish Dogra
MCA
Noida
-- modified at 3:13 Wednesday 5th July, 2006
|
|
|
|
|
sir now it will give another tpye of error
as:''''
cannot convert parameter 1 from 'class CWnd *' to 'struct HWND__ *'
Ashish Dogra
MCA
Noida
|
|
|
|
|
see my previous post.It should work.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Use ::FindWindow instead of FindWindow
FindWindow return CWnd
::FindWindow return HWND
OR
or Cast CWnd pointer to HWND
|
|
|
|
|
That is what i have shown in my previous post.
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
Hi all,
I was just wondering if anyone could point me too a site or a piece of sample code to complete the following (In VC++):
-> Receiving an Email.
-> Saving the attachments of the Email to a specific folder on one's drive.
Thanx alot if anyone could help me.
Regards
Programm3r
|
|
|
|
|
|
See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Hi
I am creating a messenger. By the way it is not my class assingment;P I am doing it just for fun. Ok problem is that i could not think of the best way to do it. In fact i want to ask how i can manage different chat sessions.
Let me give you an overview.
Should i create a saparate thread when a user double clicks on a online contact to chat with him?
Can someone provide me help or any resourse regarding this project? I have done work in socket programming. So i have no problem in that part. I just want high level logic for implementing messenger.
Please help me
Thanks
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
|
thanks for help but sourse file is not available there.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
I dont think there is a need for a thread for each session, unless you have special processing logic for each session. For the UI, a modeless dialog should be enough for each session.
|
|
|
|