This C program produces a simple MessageBox. I compiled and ran it on Windows. Using the latest version of Wine on the latest version of Q4OS, the message box is missing its caption:
#include<windows.h>
int main(){
MessageBoxA(0,"content","caption",0);
}
No caption on MessageBox
Re: No caption on MessageBox
When I compile the code with Mingw, it works fine with Wine 8.0.2.
Code: Select all
i686-w64-mingw32-gcc -o test.exe test.c -mwindows
WINEDEBUG="+text" wine test.exe
00d8:trace:text:DrawTextExW L"OK", -1, [(12,33)-(12,33)] 00000440
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00d8:trace:text:DrawTextExW L"content", -1, [(0,0)-(264,0)] 00000c50
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00d8:fixme:imm:ImeSetActiveContext (0001004E, 1): stub
00d8:fixme:imm:ImmReleaseContext (0001005C, 0001004E): stub
00d8:trace:text:DrawTextExW L"caption", 7, [(5,3)-(83,21)] 00000824
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00d8:trace:text:DrawTextExW L"OK", -1, [(1,1)-(51,25)] 00000525
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00d8:trace:text:DrawTextExW L"OK", -1, [(0,0)-(15,19)] 00000125
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00e0:fixme:imm:ImeSetActiveContext (00010026, 0): stub
00e0:fixme:imm:ImmReleaseContext (00010020, 00010026): stub
00d8:trace:text:DrawTextExW L"content", -1, [(0,0)-(74,13)] 00000850
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00d8:trace:text:DrawTextExW L"OK", -1, [(1,1)-(51,25)] 00000525
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00d8:trace:text:DrawTextExW L"OK", -1, [(0,0)-(15,19)] 00000125
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00d8:trace:text:DrawTextExW L"OK", -1, [(1,1)-(51,25)] 00000525
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
00d8:trace:text:DrawTextExW L"OK", -1, [(0,0)-(15,19)] 00000125
00d8:trace:text:DrawTextExW Params: iTabLength=0, iLeftMargin=0, iRightMargin=0
Re: No caption on MessageBox
Thank you for taking the time to respond.
It's strange, you know, because I made a full-scale Windows program with the same compiler (Tiny C), and it runs just fine on Wine.
MessageBox doesn't work, though.
Oh, well, I guess I'll just have to live with it, thanks.
It's strange, you know, because I made a full-scale Windows program with the same compiler (Tiny C), and it runs just fine on Wine.
MessageBox doesn't work, though.
Oh, well, I guess I'll just have to live with it, thanks.
Re: No caption on MessageBox
Problem solved! I discovered, quite by accident, that if I open Wine regedit and increase the font size, the caption magically appears. If I reduce the font size again, the caption disappears.
An odd kind of problem, but at least I have a solution now, thanks.
An odd kind of problem, but at least I have a solution now, thanks.