By pure coincidence I realized this one:
My mainwindow opens an independent window (scroll window) to show information on pictures.
The scroll window also shows a minipicture (created with stretchblt).
When you click on the minipicture shellexecute opens the Windows Fotoanzeige.
;----------
.elseif uMsg == WM_LBUTTONUP
mov eax, lParam
mov edx, eax
and eax, 0ffffh
inc eax
mov xPos, eax
shr edx, 16
inc edx
mov yPos, edx
.if xPos < 170 && yPos > 240
INVOKE ShellExecute,fourth_hwnd,offset fOpen,offset image_path,NULL,NULL,SW_SHOWNORMAL ;nShowCmd
.endif
;----------
Everything is ok. and runs well.
If I stop the Design Service (that is Windows7 32b without Aero Desktopdarstellung) , Windows Fotoanzeige opens the same way.
Now ... if I close the Windows Fotoanzeige my scroll window has gone blank. Nothing. It does not go down. The next click on the scrollbar shows the info and mini picture of the next ID.
If I open Windows Fotoanzeige minimized, only the part of my scrollwindow, which is covered by the Fotoanzeige is blank.
I checked all nShowCmd possibilities on ShellExecute.
Also tried ShellExecuteEx.
Any ideas what is happening ?
The only connection I see between your application and Fotoanzeige, whatever this is, is the "fourth_hwnd". Try to use NULL.
Quote from: aw27 on May 25, 2017, 12:57:30 AMFotoanzeige, whatever this is
Windows Picture Viewer.
Danke jj,
nach dem Wort suchte ich. Ich hätte es auf Portugues schreiben können .. wäre aber nicht besser.
aw27
it's the name of the handle ! and hasn't got anything to do with the problem.
Resolved the problem somehow. The program starts the "Theme service" on CREATE.
But why ??
I saw some example that retrieve the handle with GetDesktopWindow(). Are you retrievind the handle in that way?
Quote from: clamicun on May 25, 2017, 08:13:20 AM
Danke jj,
nach dem Wort suchte ich. Ich hätte es auf Portugues schreiben können .. wäre aber nicht besser.
Hallo meinen freund, Sie sprechen seher gutten Deutch. Bite, mein fehler korrigieren.
Eines Tages wird jeder Deutsch sprechen! Danke viemals!!
HSE,
there is no handle retrieving.
fourth_hwnd is the name of the handle when the window was created
INVOKE CreateWindowEx..........
mov fourt_hwnd,eax
There is no problem with my prog. It has to do with the Themes Service.
If ShellExecuteEx opens the Windows Picture Viewer the Viewer blanks the current content of my Window, if Themes Service is NOT running.
I would like to know why.
aw27,
more likely it will be Chinese.