|
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
|
|
|
|
|
YaronNir wrote: erase any previous selected rectangles that may have been drawn?
No such thing as erasing. Perhaps there is a masking sort of technique that would cause an erasing effect. That is beyond my graphics knowledge.
One thing I think would work is to draw the background into a memory DC. When you paint the background you could blt it. When you need to perform the erase effect you could blt just the rectangle that has become invalid.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
well, aparently working with memDC solved the problem
it draws only what it needs and keep the original state
the bitblt does all that work
thank mate
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
|
|
|
|
|
Hi all,
I've create a class named CListCtrlEx derived from CListCtrl.
it is created as follows:
BOOL CListCtrlEx::Create(CWnd* pParentWnd,UINT nID)
{
DWORD dwFlags = WS_CHILD|WS_TABSTOP|LVS_SMALLICON|LVS_SINGLESEL|LVS_SHOWSELALWAYS|WS_VISIBLE|LVS_NOCOLUMNHEADER;
return CListCtrl::Create( dwFlags, CRect(0,0,0,0) , pParentWnd , nID);
}
BOOL CListCtrlEx::PreCreateWindow(CREATESTRUCT& cs)
{
cs.dwExStyle |= WS_EX_CLIENTEDGE;
cs.style &= ~LVS_TYPEMASK;
cs.style |= (LVS_SHOWSELALWAYS | LVS_OWNERDRAWFIXED);
return CListCtrl::PreCreateWindow(cs);
}
in the message map i use :
BEGIN_MESSAGE_MAP(CListCtrlEx, CListCtrl)
ON_WM_PAINT()
ON_WM_CREATE()
ON_WM_DESTROY()
ON_WM_ERASEBKGND()
ON_WM_MEASUREITEM_REFLECT()
END_MESSAGE_MAP()
in MeasureItem :
void CListCtrlEx::MeasureItem( LPMEASUREITEMSTRUCT lpMeasureItemStruct )
{
lpMeasureItemStruct->itemHeight = ITEM_HEIGHT;
}
and in OnPaint:
void CListCtrlEx::OnPaint()
{
CPaintDC dc(this);
int nCount = GetItemCount();
DRAWITEMSTRUCT drawItem;
for(int i=0; i < nCount;i++)
{
drawItem.itemID = i;
drawItem.CtlID = GetDlgCtrlID();
drawItem.CtlType = ODT_LISTVIEW;
drawItem.hDC = dc.m_hDC;
drawItem.hwndItem = m_hWnd;
drawItem.itemAction = ODA_DRAWENTIRE;
drawItem.itemState = 0;
GetItemRect(i,&drawItem.rcItem,LVIR_BOUNDS);
DrawItem(&drawItem);
}
}
I add items as follows:
m_List.Create(this,IDC_MY_LIST);
m_List.InsertItem(0,_T("aaaaaaaa"));
m_List.InsertItem(1,_T("bbbbbbbb"));
Problem is that i see the fist item from the middle of the list and not the top of it??
Any suggestions?
thanks
Yaron
Interface basics click here :
http://www.codeproject.com/com/COMBasics.asp
don't forget to vote
-- modified at 15:05 Friday 12th May, 2006
|
|
|
|
|