|
What I mean, is that you should take a look at the articles I've linked to, they may well show you what you need to know.
- Dy
|
|
|
|
|
I have written an application. After clicking cross (close) Button, i have to execute some code (i.e to call fclose() function). Where should I write the code? Please help me regarding this.
|
|
|
|
|
In your WM_CLOSE handler.
If your using MFC you can override OnClose for your view/dialog, or place your code in the ExitInstance member of your CWinApp derived class.
Or you could put your code in your objects ~destructor.
- Dy
|
|
|
|
|
acemahesh@yahoo.co.in wrote: I have written an application. After clicking cross (close) Button, i have to execute some code (i.e to call fclose() function). Where should I write the code? Please help me regarding this.
Handle OnCancel() in Case of Dialog Box!
"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
|
|
|
|
|
Thanks Everyone.
Actually I had created application using MFC wizard. I tried
void CMainFrame::OnClose()
{
fclose();
}
Its working..
Thanks Once again.
|
|
|
|
|
Hope I understood your question
you need to when click close button
insert WM_CLOSE
whitesky
|
|
|
|
|
WhiteSky wrote: WhiteSky
Color changed
"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
|
|
|
|
|
almost
whitesky
|
|
|
|
|
My application architecher is c/s and serve for classes at the college.
Server displays its desktop screen to all clients and clients can see what teacher do demostrate. It alse can control every client just like doing
to local pc. And clients have giving right can control server.
Last month I've search a lot documentation and RDP can solve this problem.
But I dont know how to use RDP. So anybody can help me and tell how to begin
learning RDP and finish my job?
|
|
|
|
|
Hi,
I need to create an interface between QuickBooks and MS Access. Can you please tell me how to do this in vcpp 6?
Thanks.
Tara
Fortitudine Vinsinues!
|
|
|
|
|
Hi,
As a first step you need to register all the components and add necessary permissions to access from VC++, i think it should be DCOM components and there will be two .exe files. After these registration you will get Interop DLL's. From there it will be general programming structure it will give response in the form of XML further some PDF's will be available with QB for developers.
Siva.
|
|
|
|
|
Hi all..
i need some help regarding CMonthCalCtrl::SetDayState()
i am not able to start it off at all..
i saw some example s in MSDN .. couldnt make out what the pNMHDR pointer explained in an example is..
can anyone please tell me what it is??
and if any working sample code is given, i would be really grateful.
Thank you,
Arun
Arun
|
|
|
|
|
Thank you..
found out my problem.. its solved..
Arun
|
|
|
|
|
Hi,
I want to send Stream Bytes from VC++.Net Windows Application to VC++.Net MFC Active-X controls along with the length and i have to read that Bytes in Active-X control with length.
Please help me out.
Thanks.
|
|
|
|
|
Hi,
As i have to make new Icon for my application..I need different colors..But the controls for the Icon shows only 15 colors.Is there any option to get all different colors.I tried but i cud n't find where the control is placed.Help me
|
|
|
|
|
use menu Image ->New Image type and select from Target Image Type
|
|
|
|
|
Sorry to ask this...i couldnot find the Image menu whee is that? I need different clour selection like in paint or in MS Word
|
|
|
|
|
when you open icon and you can see it then goto menu Image and select New Image Type
|
|
|
|
|
Anu_Bala wrote: I need different colors..But the controls for the Icon shows only 15 colors.Is there any option to get all different colors.I tried but i cud n't find where the control is placed.Help m
Which version of Visual Studio are you using?
"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
|
|
|
|
|
|
Anu_Bala wrote: I am using vc++6.0
Then it's not Possible
"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
|
|
|
|
|
The easiest way to get around the limitations in VS's image editors is to not use them. Create your images in another editor (even MS Paint is better). If the editor can save .ico files then you are all set, just import the file into your project. If it can not save .ico files then do a simple copy and paste into VS's editor (up to 256 colours).
You can also use the IconPro sample from MSDN[^] to create icons from bitmaps.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Yesterday, I put all the code in the usb pen drive from my office (thanks those ports were not disabled ) and brought home. On my PC i opened the same program and as you type the functions and press ctrl+space or sometimes it automatically shows all the functions for the object, those were not seen on my PC. so how to make this listing visible in this case. is there any problem with the set up of Visual studio.
ppatel
|
|
|
|
|
ppatel567 wrote: sometimes it automatically shows all the functions for the object, those were not seen on my PC. so how to make this listing visible in this case. is there any problem with the set up of Visual studio.
Delete Project.ncb, Project.clw and Project.aps file and reopen your project file!
"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
|
|
|
|
|
suppose i have a list control which i draw a vertical gradient as the background.
now, suppose i want to draw the state of selection. my code should be as follows:
if (bIsItemSelected)
{
..... draw the selected item
}
else
{
.... just draw the text and erase any previous selected drawings
}
problem is that if an item once was selected,and now i am changing to an other item, the selected item (origin one) keeps it selected drawing rectangle....
i'm not sure how to erase it, since i am using a vertical gradient as the list background....
is there a way (maybe using blt?) to tell the list just to draw the text but as transparent?
and erase any previous selected rectangles that may have been drawn?
thanks in advanced
yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
-- modified at 17:13 Friday 12th May, 2006
|
|
|
|