|
Hi,
thanx for answer, and i have a own dialog with controls that i show bottom of this standard CFileDialog controls, bottom of combobox of file types.
And the constructor gets called too, but not the OnInitDialog() of my custom dialog(its a modeless dialog as parent), i work on XP system!
I try with SetTemplate()!
regards
Arrin
|
|
|
|
|
Hi,
SetTemplate() dont works
any other idea??
regards
Arrin
|
|
|
|
|
Hi,
I want to display one scrollbar in my view class.
So i created the scrollbar in OnCreate() of view class.
void CTrendView::OnCreate(LPCREATESTRUCT l)
{
CView::OnCreate (l);
HScroll.Create(SBS_HORZ | SBS_TOPALIGN | WS_CHILD | WS_VISIBLE, CRect( 10,10,200,15), this, 1);
}
I declared HScroll in .h file
CScrollBar HScroll;
But the scrollbar doesnot get displayed in my view.
Did i miss anything?
Anu
|
|
|
|
|
If your view class is drived from CView, replace all CView with CScrollView
then you can use scrollbars easily!
www.logicsims.ir
|
|
|
|
|
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
|
|
|
|