CreateEdit produces full size uneditable window

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
n4af
Level 1
Level 1
Posts: 6
Joined: Mon Sep 01, 2014 8:34 am

CreateEdit produces full size uneditable window

Post by n4af »

win7.jpg
I have a windows app that creates many windows. It runs fine under Win32 but the windows will only show full sized under linux. In each case the windows with a problem are CreateEdit, as in this Pascal snippet:

AltDEditWindowHandle := CreateEdit(ES_CENTER or ES_UPPERCASE or WS_BORDER, 15, 27, 250, 30, hwnddlg, 101);

Under Windows I get a window with the above border sizes.
Under linux I can grab the title bar and move the f/s window but nothing else. Right clicking on the title bar i have options Restore, Resize, Maximize selected.

I am running kernel 3.16.1 and Wine 1.7.18

When i start my app via terminal command i get this
err:listview:LISTVIEW_WindowProc unknown msg 108c wp=00000004 lp=00000000
err:listview:LISTVIEW_WindowProc unknown msg 108c wp=00000004 lp=00000000
fixme:comm:set_queue_size insize 512 outsize 512 unimplemented stub
fixme:comm:set_queue_size insize 512 outsize 512 unimplemented stub
My app comes up normally and works normally, except for window sizing.
Winecfg for my app and graphics has checkmarks for but 'emulate a virtual desktop'

Win snapshot above, Linux encl.

Anything I can try ?

Thanks, Howard
Attachments
linux.png
n4af
Level 1
Level 1
Posts: 6
Joined: Mon Sep 01, 2014 8:34 am

Re: CreateEdit produces full size uneditable window

Post by n4af »

i have not given enough information. Will update this with more info...
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: CreateEdit produces full size uneditable window

Post by dimesio »

Winecfg for my app and graphics has checkmarks for but 'emulate a virtual desktop'
Try emulating a virtual desktop. You should also upgrade Wine to 1.7.26.
n4af
Level 1
Level 1
Posts: 6
Joined: Mon Sep 01, 2014 8:34 am

Re: CreateEdit produces full size uneditable window

Post by n4af »

dimesio wrote:
Winecfg for my app and graphics has checkmarks for but 'emulate a virtual desktop'
Try emulating a virtual desktop. You should also upgrade Wine to 1.7.26.
Ok, thanks --
Virtual desktop produces the same failure.

I have never had luck with Wine compiles. The error is the same as
http://pastebin.com/GJ94XnD8

using . tools/wineinstall of current binary.
---
make[2]: Entering directory `/home/n4af/Downloads/wine-1.1.27/dlls/ntdll'
gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -g -O2 -o thread.o thread.c
In file included from thread.c:42:0:
../../include/ddk/wdm.h:429:11: error: duplicate member ‘u’
make[2]: *** [thread.o] Error 1
---
Let me give a better example of the code resulting in the small yellow window above in Windows and the FULL SCREEN window in Linux:

CreateModalDialog(140, 50, tr4whandle, AltDDlgProc, 0);

function AltDDlgProc(hwnddlg: HWND; Msg: UINT; wParam: wParam; lParam: lParam): BOOL; stdcall;
label
1;
var
P1, P2 : PChar;
begin
Result := False;
case Msg of
WM_INITDIALOG:
begin

Windows.SetWindowText(hwnddlg, RC_DUPECHECKOAR);

Format(TempBuffer1, TC_ENTERCALLTOBECHECKEDON, BandStringsArray[InActiveRadioPtr.BandMemory], ModeStringArray[InActiveRadioPtr.ModeMemory]);
CreateStatic(TempBuffer1, 15, 3, 250, hwnddlg, 102);

AltDEditWindowHandle := CreateEdit(ES_CENTER or ES_UPPERCASE or WS_BORDER, 15, 27, 250, 30, hwnddlg, 101);
asm
mov edx,[MainWindowEditFont]
call tWM_SETFONT
end;
CreateOKCancelButtons(hwnddlg);

I can give recreation scenario ?

Tks, Howard
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: CreateEdit produces full size uneditable window

Post by dimesio »

make[2]: Entering directory `/home/n4af/Downloads/wine-1.1.27/dlls/ntdll'
1.1.27 is 5 years old and won't build on a modern distro. The current development release is 1.7.26.
n4af
Level 1
Level 1
Posts: 6
Joined: Mon Sep 01, 2014 8:34 am

Re: CreateEdit produces full size uneditable window

Post by n4af »

My bad.
The install runs ok, but
STRIPPROG="strip" ../../tools/install-sh wrc /usr/local/bin/wrc
make[1]: Leaving directory `/home/n4af/Downloads/wine-1.7.26/tools/wrc'

Installation complete.
If you have problems with Wine, please read the documentation first,
as many kinds of potential problems are explained there.
~/Downloads/wine-1.7.26wine --version
wine-1.7.18
If I try to remove old 1.7-18:
~wine uninstall
wine: cannot find L"C:\\windows\\system32\\uninstall.exe"

~wine US
wine: cannot find L"C:\\windows\\system32\\US.exe"
n4af
Level 1
Level 1
Posts: 6
Joined: Mon Sep 01, 2014 8:34 am

Re: CreateEdit produces full size uneditable window

Post by n4af »

well, i did a sudo apt-get remove
sudo apt-get remove --purge
and reran the install but version seemed to stay at old level.
Somewhere along the line, it took as now:
~wine --version
wine-1.7.26
~

Unfortunately it has no effect on the problem. My window created by the above code will only display full screen.

Thanks, Howard
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: CreateEdit produces full size uneditable window

Post by dimesio »

File a bug.
n4af
Level 1
Level 1
Posts: 6
Joined: Mon Sep 01, 2014 8:34 am

Re: CreateEdit produces full size uneditable window

Post by n4af »

This problem is now tied to bug # 37297
Thanks to moderator for his assistance.

Howie
Locked