Qt handle native messages?
Is there any way how to handle native messages? I mean to handle, for example, on Windows WM_NCPAINT (to work with border). It is not available to work with Window Caption Bar. Will Qt implement it? Yes, it requires to add some handler function for example, add to QWidget method:
@virtual void QWidget::borderPaintEvent(QPainter* e) = 0;@ ?
In WinAPI it just require to catch in Switch-case code...
// call QWidget::borderPaintEvent(QPainter *e);
It could allows me to work with Non-Client Area in Qt and use platform-depent libraries. Could it be RFC, Can I push it somewhere ?
Yes. But, I think, it is not good idea to work with Window settings under QCoreApplication (QApplication). Much more logic gives to have handler under QWidget. So, I will have to inherit and replace QWidget. It seems.
Hmm...I think to inherit QCoreApplication/QApplication, reimplement winEventFilter, and it in, call @MainWidget::borderPaintEvent();@
This could be also an idea...
Yes, and into it add line of code:
if(msg.message == WM_NCPAINT)
Yes, it has logic...
EDIT: but what to @long result@ ??