Search found 144 matches

by zhouhao
Thu Apr 12, 2007 3:24 pm
Forum: wxCode
Topic: IEHtmlWin and embedding webpage on wxWindows
Replies: 12
Views: 2814

Now I know all the info is in exdisp.h and exdispid.h. The exdisp.h is created by MIDL compiler. My next question is how to generate .h files from ocx. Because ie browser is microsoft's product, so its platform sdk comes with a exdisp.h. If I want to use flash.ocx for example, how can I generate .h ...
by zhouhao
Thu Apr 12, 2007 7:07 am
Forum: wxCode
Topic: IEHtmlWin and embedding webpage on wxWindows
Replies: 12
Views: 2814

i've searched a little while. You can also use strings like "DocumentComplete" or "ProgressChange" EVT_ACTIVEX(ID_WXIEHTMLWIN1, "ProgressChange", ...) Thank you so much. This one works. But I'm wondering how do you get the event id or event name. If I can find these info I can get whatever event I ...
by zhouhao
Thu Apr 12, 2007 5:51 am
Forum: wxCode
Topic: IEHtmlWin and embedding webpage on wxWindows
Replies: 12
Views: 2814

yes, there's a sample code: EVT_ACTIVEX(ID_WXIEHTMLWIN1, DISPID_BEFORENAVIGATE2, Frame::WxIEHtmlWinNavigateBegin) void Frame::WxIEHtmlWinNavigateBegin(wxActiveXEvent& event) { wxMessageBox(event["Url"]); event["Cancel"] = true; //... } Thanks for your reply. However I got an error message "error C2...
by zhouhao
Wed Apr 11, 2007 3:21 am
Forum: The Code Dump
Topic: wxFlatNotebook
Replies: 248
Views: 60991

One simple question. Is it possible to change the color of tabs?
by zhouhao
Mon Apr 09, 2007 4:01 pm
Forum: wxCode
Topic: IEHtmlWin and embedding webpage on wxWindows
Replies: 12
Views: 2814

Sun wrote:Finally i success to embed an IE Window in my wxApp.

I have another question... What about wxIEHtml events ? ie how to catch an user-clickonlink event ?
Same question. Have you managed to capture the event?
by zhouhao
Fri Apr 06, 2007 2:03 pm
Forum: C++ Development
Topic: AddTool to specific position at toolbar
Replies: 3
Views: 716

yes I too have experienced it. The only solution I found was using a panel as a toolbar in my project. I hope you can do that too. Then ur free to do whatever you want to Thanks for your reply.But I need full function toolbar. If I use panel I have to write a lot of code to simulate the toolbar. My...
by zhouhao
Tue Apr 03, 2007 6:21 pm
Forum: C++ Development
Topic: AddTool to specific position at toolbar
Replies: 3
Views: 716

By the way, the AddSeperator doesn't work either unless use wxFrame::CreateToolbar. I guess there are some bugs here. I'm using wxWidgets 2.8.3.
by zhouhao
Tue Apr 03, 2007 5:15 pm
Forum: C++ Development
Topic: AddTool to specific position at toolbar
Replies: 3
Views: 716

AddTool to specific position at toolbar

I'm testing toolbar functions in following code: #ifdef __WXMSW__ int width = 24; #else int width = 16; #endif int currentX = 5; toolBar->AddTool(wxID_NEW, *(toolBarBitmaps[0]), wxNullBitmap, false, currentX, -1, (wxObject *) NULL, "New file"); currentX += width + 5; toolBar->AddTool(wxID_OPEN, *(to...
by zhouhao
Mon Apr 02, 2007 6:11 pm
Forum: C++ Development
Topic: [SOLVED]how to get wximage with alpha channel from resources
Replies: 3
Views: 829

It should be no problem to load png with alpha channel. I've done simular thing before without any problem.

If you want load a file to input stream. Here is the code:

Code: Select all


      wxFFileInputStream in(_T("example.png"));
      if ( in.IsOK )
      {
          // do whatever you want
      }

by zhouhao
Fri Mar 30, 2007 3:05 pm
Forum: C++ Development
Topic: wxJoystick with more than 4 buttons. Unclear documentation.
Replies: 1
Views: 412

Beside 4 buttons, wxWidgets supports x,y button. But it doesn't support other buttons.
by zhouhao
Wed Mar 28, 2007 2:30 am
Forum: C++ Development
Topic: Questions about wxIEHtmlWin
Replies: 1
Views: 410

Nobody knows?
by zhouhao
Tue Mar 27, 2007 4:30 am
Forum: C++ Development
Topic: Questions about wxIEHtmlWin
Replies: 1
Views: 410

Questions about wxIEHtmlWin

I managed to compile wxIEHtmlWin. I found LoadStream is not working as my expectation. For example, inside my html file, I have something like this: <img src="images\image001.gif" align=left> If I use LoadUrl, there is no problem to show picture. But if I use LoadStream, the picture will not be show...
by zhouhao
Tue Mar 20, 2007 5:48 am
Forum: C++ Development
Topic: Questions regarding wxZipOutputStream
Replies: 0
Views: 326

Questions regarding wxZipOutputStream

I'm using wxZipOutputStream to compress a directory. The result is quite confusing. My original size is smaller that the zip file and no matter what level is set I always got the same size. Why?
by zhouhao
Fri Mar 16, 2007 4:08 pm
Forum: C++ Development
Topic: Add multiple file in zip format to memory
Replies: 4
Views: 1030

I know how to do now. I have to put "size_t bufsize = mem3.GetSize();" after the wxZipOutputStream closed because wxZipOutputStream will do some more actual writing after Close(). Thanks for your help and reminding, tan. Actually it doesn't matter which method to take. The key point is to call them ...
by zhouhao
Fri Mar 16, 2007 4:00 pm
Forum: C++ Development
Topic: Add multiple file in zip format to memory
Replies: 4
Views: 1030

Hi, some time ago i had used the same code, it worked fine. One difference is that i got size of the memory stream by TellO() (i don't remember at the moment why i did that :)). bool wxDbVibroAv::Update(wxInputStream *stream) { wxMemoryOutputStream mst(0, 0); wxZipOutputStream zst(mst); zst.PutNext...