|
Handle WM_CLOSE
STL is a religeon. Enquiries to Reverend Christian Graus
|
|
|
|
|
Thanks, I actually added the wm_close and didn't know that it would work with the X also. I thought there would be a wm_exit for that one.
Thanks for the info.
|
|
|
|
|
Does somebody knows where I can find the download for the EXCEL DEVELOPPERS KIT (any version will do)?
I've crawled the msdn site from top to bottom and 20 times back again, but nothing shows up.
Is it on the office installation cd? Do you have to buy it in a store?
tnx.
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
You will have to buy Office Developer's Kit from MS (I don't know it they have sepparate versions for Excel, Word..)
Enis Arif
-----------
"I am enough of an artist to draw freely upon my imagination. Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world." (Albert Einstein)
|
|
|
|
|
That's an MSPRESS book basically.
It was published in MSDN library until 1998, but MS decided to remove it to encourage people to use only VBA for Excel, and now Excel Xml,
And I swallow a small raisin.
|
|
|
|
|
I've just found the library and header files. It was included in some example zipfile
There're no docs but everything that's in the example is very clear.
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
Hi,
I got some troubles with VC6 and STL, I found on google's usenet archive that a SP is recommended. Which one should I apply, latest SP5? Any problems or new bugs that I should know?
Thanks
|
|
|
|
|
go ahead! can't believe you still running VC6 without SP,
And I swallow a small raisin.
|
|
|
|
|
okay, it's done.
Still the same problems and I need to run a workaround still. Is it known that STL implementation is a little clumpsy? Had no problems on Unix platform.
|
|
|
|
|
Regarding STL compliancy with ISO, indeed you are very unlikely to be able to compile without a slight change, such like project settings or one or more #ifdef#define. Post a code snippet if you are stuck, I am sure one of the people out there will help you in no time,
And I swallow a small raisin.
|
|
|
|
|
okay - thanks a lot for offering help! I got the hint already to use 'stlport' or other supplementary STL libraries. I'll post problems, when it can't be solved with a little googeling.... have a nice weekend
|
|
|
|
|
What problem are you running into? There may be a fix you can apply or the other option is to use another implementation of STL such as http://www.stlport.org[^]
I've run into problems before (can't remember exactly what) and had to work around them.
Todd Smith
|
|
|
|
|
I have an MDI application where the view class has a dialog box as a member. When I change between the views I want to hide the dialog box. In the CView::OnActivateView function i hide the dialog when I change between the two views.
My problem is when i change from the dialog box to the the other view. I don't know how to hide the dialog box i that case. Can somebody please help?
I also committed the crime of posting a programming question in the Lounge.
|
|
|
|
|
Hi.
I want to display thumbnails of images. I tried using the "Imaging for Windows" ActiveX control imgthumb.ocx (Kodak image thumbnail) that comes along with Windows2000. I use VC++6.0.
I want to dynamically create the thumbnails. I am unable to figure out which functions to call.
Here is my code snippet.
It does not show any error, but nothing is displayed.
Can you point out what is wrong?
m_thumb = new CImgThumbnail;
BOOL res = m_thumb->Create("Thumbnail", WS_CHILD | WS_VISIBLE | WS_BORDER,
CRect(100, 100, 170, 170), this, 1341);
m_thumb->SetThumbWidth(50);
m_thumb->SetThumbHeight(50);
m_thumb->SetImage("c:\\flowers.jpg");
m_thumb->SetEnabled(true);
m_thumb->SetThumbCaption("seen???");
m_thumb->SetThumbBackColor(0);
m_thumb->SetThumbCaptionColor(100);
VARIANT image, page;
BSTR bst;
CString str="c:\\database_n\\flowers\\21099_wallpaper110.jpg";
bst = (unsigned short *)str.GetAt(0);
image.vt = VT_BSTR;
image.bstrVal = bst;
page.vt = VT_I2;
page.iVal = 1;
m_thumb->UISetThumbSize(image, page);
VARIANT thumbno, options;
thumbno.vt = VT_I4;
thumbno.lVal = 1;
options.vt = VT_I2;
options.iVal = 0;
CString str1 = m_thumb->GetImage();
m_thumb->DisplayThumbs(thumbno, options);
//m_thumb->Refresh();
However, the thumbnail is displayed when I put the control in a dialog box (using the editor), and set its properties.
Where am I going wrong in the dynamic creation process?
Hope somebody can throw some light.
Thanks.
Logic is a systematic method of coming to the wrong conclusion with
confidence.
|
|
|
|
|
I did that in CDlg::OnInitDialog() implementation :
CRect rect(10,10,150,150);
m_pCtrl = new CThumbnailctrl1();
BOOL bOk = m_pCtrl->Create(NULL,
"thumb",
WS_CHILD|WS_VISIBLE,
rect,
this,
100);
m_pCtrl->SetImage("c:\\011.jpeg");
And when I ran tha dialog-based MFC app, I saw the actual image on screen. At least this works so far.
And I swallow a small raisin.
|
|
|
|
|
That is working for me too.
But my aim is to place the control in a CHtmlView-derived window. It is not getting displayed there.
Can you figure this out?
Thanks for the response.
Logic is a systematic method of coming to the wrong conclusion with
confidence.
|
|
|
|
|
Easy to figure out, CHtmlView is a placeholder (understand : just a window border) for the web browser OCX. Hence you have no chance of displaying your control on top of it, if that's that what you'd like to do.
Well to be honest, you may achieve some "BringToFront()" or something if you hack down COleControl internal behaviours, but as you can imagine, it is highly not recommended.
I don't know exactly what you want to do wrt to CHtmlView. I would understand with a CDialog but I don't get it with CHtmlView. By default, I would suggest to create a default CView (would behave exactly like a window, but in a SDI/MDI model), and to create one or more of thumbnail controls in it,
And I swallow a small raisin.
|
|
|
|
|
Thanks for your reply.
My aim is to display the thumbnails of all images contained in a selected folder. For this, I have created an Explorer-style app, with a CTreeView-derived window as the left pane and I just put a CHtmlView-derived window as the right pane (anticipating future use). Using the left pane, the user can navigate to the various folders in the system. When the user clicks a particular folder, it will expand in the tree view. Also, I want the thumbnails of images avl. in that folder to be shown in the right pane.
(If you have used the IrfanView software, you will come to know that I am trying to implement the Thumbnail option avl in it).
But after you have pointed out, I have realized that it's not possible to display thumbnail control in the CHtmlView-derived window.
So, I have a plain CSrollView-derived window now as the right pane. But my problem is, I don't want to create/destroy the thumbnails every time a new folder is selected. I want the thumbnails to be remembered once they are created; something like the CTreeView behavior itself.
Can ou suggest some way out?
Thanks a lot.
Logic is a systematic method of coming to the wrong conclusion with
confidence.
|
|
|
|
|
Display folder images is part of the operating system.
You've got all the Html+ActiveX code for that in <windowsdir>\web\folder.htt.
What you may do if the Kodak activex handles a particular image file format that you need to support, is replace the default ThumbCtl class in the .htt code with Kodak,
If you need to include all this in your MFC app, I guess you can put a CHtmlView on the right and call
CHtmlView::Navigate("res://<windowsdir>\web\folder.htt?folder=...").
Modifying the .htt file for your own purpose does no harm and should bring you your entire app working fine within a couple of hours,
And I swallow a small raisin.
|
|
|
|
|
Hi,
I read the article on MPCStatusBar. It helps but I tried to use a Button and would like to include a message handle for the button click.
I'm not sure how to do this. Also the Button appears disabled.~
Anyone have a suggestion
regards
Rui
|
|
|
|
|
How I can draw bitmap on window caption ?
I want draw picture near system button[minimize,maximize,close].
Sorry my english!
|
|
|
|
|
You'll have to handle WM_NCPAINT.
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
|
Is it enough to use IXMLDOMNode::put_nodeTypedValue and IXMLDOMNode::put_dataType in order to encode the data for some node?
rechi
|
|
|
|
|
I thought I'd have one last try to see if I can get some help on this, sorry to all who are sick of seeing me post this, think its the 3rd time
I'm using VS.Net with MFC and I'm using the CFtpConnection class. There is a member function, Command, which will allow you to create new commands to send to the ftp server and get responses back. I'm really needing to use this but I'm having a problem getting a response back from the server The problem is the 2nd parameter. My code just now is
CInternetFile* responseFile = ftp1->Command(pasvCommand,ftp1->CmdRespRead,FTP_TRANSFER_TYPE_ASCII);
ftp1 is a valid connected cftpconnection object and pasvCommand is just the string PASV for sending to the server. The 2nd parameter is the one that specifies if you want a response or not and is defined in the afxinet.h header as an enum with CmdRespRead the one for getting a response back. Setting the 2nd parameter in the call as CmdRespRead will throw a compiler error that its unrecognised, by using ftp1->CmdRespRead it will compile but doesn't take a response back from the server.
Does anyone know what I should put in here because I'm about to delete this project and start work on a winsock version if I can't get it fixed, not good as I know nowt about winsocks
Thanks all who read & can help
|
|
|
|