|
Derive your view class from CScrollView instead of CView, both scrollbar comes automatically, don't forget to set ScrollInfo
ghghhgh
|
|
|
|
|
Hi,
I've search throughout the net, cant find any solution. Hope someone able to help me.
My apps had a panel which can draw many rect. The app can be moved by draggin left/right using mouse. Whenever i moved the panel, it'll try to move all the rectangle to top/bottom/left/right following the mouse motion. When the mouse move, it will force the rectangle to be redraw. My app become laggy whenever i use .DrawText to a multiple line of text inside the rectangle.
I have around 80++ rect which used .DrawText to display the text on each rect.
I've tested, if the text is only 1 short words without /r/n (one line), then it will display nicely without laggy.
eg:
Alice
But if the text is in multiline (about 4~5 lines) i tried to run .DrawText, it makes my apps lagg.
eg:
Alice
in
wonderland
Any idea ??
The command i used :
dc.DrawText(strDraw, rcText, DT_LEFT | DT_WORD_ELLIPSIS);
Regards,
KH
good
|
|
|
|
|
Cannot believe DrawText makes your system lag. Please post the relevant code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
oh.. it makes the apps lag only.. the system doesnt lag
good
|
|
|
|
|
OK. And what about the 'relevant code'?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
such drawing problems can be solved via drawing in a memory bitmap and only blitting it to screen.
That articles is a great example HOW TO do it:
Link: CEnBitmap
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi
i have developed an application in vc++ vs2005 .The output runs as an exe.can anyone suggest me an idea on how to do it as a setup file.
regards
gany
|
|
|
|
|
|
HI
the link of msdn is not working
Thnks
|
|
|
|
|
Try this[^]
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
|
|
I believe VS 2005 has setup and deployment feature bundled with it? Use it.
If you are looking for an alternative, I'd recommend Inno Setup[^].
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Hi
i tried running the application using static library.
My Application is a Database oriented and hence i m getting the following error.
"oracle client and networking components were not found.These components are supplied by oracle corpartion and are part of the oracle version 7.3.3 or later client software insatllation
provider is unable to function until these components are installed."
Kindly provide me a solution
Regards
Gany
|
|
|
|
|
hellogany wrote: Kindly provide me a solution
install the oracle client on the machine - your DBA should have the client CD as part of the distribution (I think the client can also be downloaded from Oracle if you have a developer ID)
'g'
|
|
|
|
|
Hi
thnks for ur reply
I have to run the exe in many computers.
Do u think that i need to install client in every computers? If tht is that a gud solution???
Regards
gany
|
|
|
|
|
Im not sure if ODBC will get you where you want instead - ie if you're connecting to an oracle database with ODBC does the Oracle client have to be on the machine as well ?
The Oracle client has the setup & ability to define network connections/definitions which allow a 'native' database connection through the Oracle Client Interface (OCI)
ask your DBA or look it up on the oracle site
'g'
|
|
|
|
|
HI
Thnks for ur reply
i will chk it out
regrds
gany
|
|
|
|
|
Hello Friends
I m creating a Zip folder by using
HZIP hz = CreateZip(fileName,0);
And adding files using
ZipAdd(hz, value1, value);
And I want to knpw How can i Check File Existance Of a File in Zipped Folder?
Thanks
Yogesh
|
|
|
|
|
it depends on which implementation of zip you are using - if you're using Lucian Wischik's, something like this perhaps
HZIP hz = OpenZip("\\simple1.zip",0);
ZIPENTRY ze; GetZipItem(hz,-1,&ze);
int numitems=ze.index;
for (int zi=0; zi<numitems; zi++)
{ ZIPENTRY ze;
GetZipItem(hz,zi,&ze);
}
CloseZip(hz);
|
|
|
|
|
thanks for ur reply but I have to check while adding to zip file means before close of Zip.So will it work.B'czo this I know to extract the Items from Zip.Actually I thought that may be some function that gives me the result of existance of particular file in that zip.
Thx
|
|
|
|
|
Im still not quite sure what you are trying to do - you're adding files to a zip but want to know if a file is in the zip before closing it ? huh ? or are you for example checking to see if a file ALREADY exists in the zip and not adding it if it does ?
you could wrap the code I gave you in a function that takes the hz of the open zip file and a string for the filename, and traverses the index like I show, returning say bool true if the file exists
a much simpler way could be for every file you're using ZippAdd for, you store the filename in a string vector before using ZipAdd. Before calling ZipAdd, search the vector using find() for example, if its found, dont ZipAdd it, but your logic is unclear, its late at night here, so thats the best I can do for the moment, sorry
'g'
|
|
|
|
|
k,no prob.
Actually I m trying like this
"or are you for example checking to see if a file ALREADY exists in the zip and not adding it if it does ?
"
But I will try vector one.
so thanks.
|
|
|
|
|
Hello everybody !
Now I use VC6 to new a dialog program,and add this code into the OnOK() function:
void CMFCDlg::OnOK() <br />
{<br />
MessageBox("","",MB_OK);<br />
}
and now I new other SDI program to get the MessageBox Handle:
void CMainFrame::OnFileNew() <br />
{<br />
HWND hWnd1,hWnd2;<br />
hWnd1 = ::FindWindow(NULL,"MFC");
hWnd2 = ::FindWindowEx(hWnd1,NULL,"#32770",NULL);<br />
if(!hWnd2)<br />
{<br />
MessageBox("Get Window Handle is failed!");<br />
}<br />
}
I try it more ,but is failed. the result isn't same as SPY++.
How to get other program's MessageBox Handle without title ?
thanks for your reply!
Best Reguards!
|
|
|
|
|
Is hWnd1 valid and it doesn't find the second one or is hWnd1 also null?
Greetings
Covean
|
|
|
|