Author Topic: Design service - Aero Desktop Windows7 32b  (Read 491 times)

clamicun

  • Member
  • **
  • Posts: 240
Design service - Aero Desktop Windows7 32b
« on: May 24, 2017, 04:17:33 AM »
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 ?


 

aw27

  • Member
  • ****
  • Posts: 851
  • Let's Make ASM Great Again!
Re: Design service - Aero Desktop Windows7 32b
« Reply #1 on: May 25, 2017, 12:57:30 AM »
The only connection I see between your application and Fotoanzeige, whatever this is, is the "fourth_hwnd". Try to use NULL.

jj2007

  • Member
  • *****
  • Posts: 7728
  • Assembler is fun ;-)
    • MasmBasic
Re: Design service - Aero Desktop Windows7 32b
« Reply #2 on: May 25, 2017, 01:42:38 AM »
Fotoanzeige, whatever this is

Windows Picture Viewer.

clamicun

  • Member
  • **
  • Posts: 240
Re: Design service - Aero Desktop Windows7 32b
« Reply #3 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.

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 ??

HSE

  • Member
  • ****
  • Posts: 550
  • <AMD>< 7-32>
Re: Design service - Aero Desktop Windows7 32b
« Reply #4 on: May 25, 2017, 10:28:55 AM »
I saw some example that retrieve the handle with GetDesktopWindow(). Are you retrievind the handle in that way?

aw27

  • Member
  • ****
  • Posts: 851
  • Let's Make ASM Great Again!
Re: Design service - Aero Desktop Windows7 32b
« Reply #5 on: May 25, 2017, 02:38:11 PM »
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!!

clamicun

  • Member
  • **
  • Posts: 240
Re: Design service - Aero Desktop Windows7 32b
« Reply #6 on: May 26, 2017, 04:41:44 AM »
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.