Search found 1914 matches

by PB
Tue Apr 16, 2019 8:03 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 160

Re: Moving to Visual Studio 2019

Eh, I did not notice that by purporse <wx/msw/winundef.h> does NOT have an include guard and can therefore be included several times. Hence, I repeat my advice from previous post about making sure that defines, in particular UNICODE related ones, are same for all the files in your project and as whe...
by PB
Tue Apr 16, 2019 7:03 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 160

Re: Moving to Visual Studio 2019

#includeing a header file multiple times should not matter, as all wxWidgets header files have guards against it. Assuming you really need to #include <wx/msw/winundef.h>, make sure this statement is after all wxWidgets header includes and after #include <windows.h>. But why would this break with ne...
by PB
Tue Apr 16, 2019 4:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Moving to Visual Studio 2019
Replies: 17
Views: 160

Re: Moving to Visual Studio 2019

Just to make sure the issue is within wxWidgets: can you build bundled drawing sample? Make 100% sure you cleared anything that may be left over from MSVC 2017 build, no matter how compatible the two compilers are supposed to be. I myself am too old to attempt using the very first release of a new v...
by PB
Sat Apr 13, 2019 4:25 pm
Forum: C++ Development
Topic: wxLog examples
Replies: 1
Views: 30

Re: wxLog examples

What exactly is the issue, can you not do something like the code linked below, except to store the log entries e.g. in a std::vector<wxString> instead of writing to a file?
viewtopic.php?t=42551#p172677
by PB
Mon Apr 08, 2019 1:30 pm
Forum: C++ Development
Topic: 2 events calling same function?
Replies: 6
Views: 77

Re: 2 events calling same function?

ValeV wrote:
Mon Apr 08, 2019 12:20 pm
why is my solution wrong?
As I wrote in my first post, I believe that you should not attempt to connect an event handler to a method with a wrong prototype. While both wxCommandEvent and wxCloseEvent are derived from wxEvent, they are not the same. But I may be wrong...
by PB
Mon Apr 08, 2019 11:39 am
Forum: C++ Development
Topic: 2 events calling same function?
Replies: 6
Views: 77

Re: 2 events calling same function?

The usual way of doing what you asked is to create a method that will be called from multiple event handlers. Isn't that what I'm doing with Connect() ? No. You connected two events to a single event handler. What I meant was to call a user function from multiple event handlers, i.e., something lik...
by PB
Mon Apr 08, 2019 8:54 am
Forum: C++ Development
Topic: 2 events calling same function?
Replies: 6
Views: 77

Re: 2 events calling same function?

I have never used Connect(), so TBH, I am surprised it even compiles, as the signature for wxEVT_CLOSE_WINDOW handler is void handlerFuncName(wxCloseEvent& event) The usual way of doing what you asked is to create a method that will be called from multiple event handlers. BTW, I would recommend usin...
by PB
Fri Apr 05, 2019 8:54 pm
Forum: C++ Development
Topic: Loading Bitmaps from resource file
Replies: 6
Views: 92

Re: Loading Bitmaps from resource file

Why don't you just step into the bitmap loading code to see where and why it goes wrong? It should be quick and easy.
by PB
Thu Apr 04, 2019 12:28 pm
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 150

Re: wxNativeWindow host app

I have no knowledge at all of OSX. The code I posted was only for Windows and it works (tested with MSVC). The errors you posted look as if you did not include <windows.h>? Assuming you are building the code on Windows, try putting #include <wx/msw/wrapwin.h> after all the includes you have. BTW, wi...
by PB
Thu Apr 04, 2019 9:04 am
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 150

Re: wxNativeWindow host app

FWIW I tried to do a quick and dirty C++/wxWidgets equivalent of code of the linked window. My observations: 1. The way of finding HWND from PID does not seem to work for UWP apps, e.g. Calc.exe on W10, which do not really have HWNDs 2 I still fail to see usefulness of this. Code (using notepad.exe ...
by PB
Thu Apr 04, 2019 7:21 am
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 150

Re: wxNativeWindow host app

Looking at the code in the linked video, all it does is reparent the calc window to the window of "host" application? How would you do it for processes which have multiple "main" windows? I am still not sure what use there is? I am also not sure wxNativeWindow would be good here, seems it was intend...
by PB
Thu Apr 04, 2019 5:54 am
Forum: C++ Development
Topic: wxNativeWindow host app
Replies: 9
Views: 150

Re: wxNativeWindow host app

What do you mean by "embedding another application"? I never saw such a thing on Windows, unless we are talking about a plugin or good old OLE... Can you give an example of this?

AFAIK, wxNativeWindow is for embedding windows, not processes.
by PB
Wed Apr 03, 2019 1:11 pm
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 650

Re: wxWebView with Chromium backend

It seems to me, that cef is not easy to integrate, given how many errors I already made with a project, that is supposed to work out of the box. If you believe there are bugs/issues with the PR (aside the already-fixed wxWidgets-wide CMake issue with static CRT linkage), I believe you are welcome t...
by PB
Wed Apr 03, 2019 10:36 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 650

Re: wxWebView with Chromium backend

BTW: Have you tried the prebuild binaries for CEF? Actually, wxWidgets's CMake project downloads the binary from the very same site. It is like magic and one of the reasons I tested that PR with CMake only. From what I read, building CEF3 is quite demanding process and it would not be wise to integ...
by PB
Wed Apr 03, 2019 7:13 am
Forum: C++ Development
Topic: wxWebView with Chromium backend
Replies: 25
Views: 650

Re: wxWebView with Chromium backend

But I am hesitant to try this, because I think it is missing some files again. Eg., I cant find the "wxmsw31u_webviewchromium.lib" in that repo... What do you mean? No repository should contain built libraries. I would make sure to clone TcT2k's fork to a new folder to prevent mixing files from dif...