Real wallpaper different of the real wallpaper

Just starting out? Need help? Post your questions and find answers here.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Real wallpaper different of the real wallpaper

Post by Kwai chang caine »

Hello
I am French, and speak badly English.
I have a big problem with a code which does not work has my job.

My computer is under reseau W2000 and the bottom of the windows does not give me the wallpaper by my machine.
It's the bottom of virtual desktop that appears.


Anybody of this forum knows it why?
Because on the French forum I had 45 visits and no answer.

Code: Select all

Procedure.l myCallback(hWnd.l,uMsg.l,wParam.l,lParam.l) 
   Select uMsg 
      Case #WM_ERASEBKGND 
         ProcedureReturn 
      Case #WM_PAINT 
         For i=1 To 2 
            x = GadgetX(i) 
            y = GadgetY(i) 
            SetRect_(Rect.RECT,x,y,x+GadgetWidth(i),y+GadgetHeight(i)) 
            ValidateRect_(hWnd,Rect) 
            RedrawWindow_(GadgetID(i),0,0,$407) 
         Next 
         PaintDesktop_(BeginPaint_(hWnd,ps.PAINTSTRUCT)) 
         EndPaint_(hWnd,ps) 
      Case #WM_SIZING,#WM_MOVING 
         InvalidateRect_(hWnd,0,1) 
   EndSelect 
   ProcedureReturn #PB_ProcessPureBasicEvents 
EndProcedure 

If OpenWindow(0,100,100,320,240,#PB_Window_SystemMenu|#PB_Window_SizeGadget,"") 
   CreateGadgetList(WindowID(0)) 
   ButtonGadget(1,5,5,100,50,"Hello") 
   EditorGadget(2,5,60,100,175) 
   SetWindowCallback(@myCallback(),0) 
   InvalidateRect_(WindowID(0),0,1) 
   Repeat:Until WaitWindowEvent()=#PB_Event_CloseWindow 
EndIf 
Image

Thank you
Good day
ImageThe happiness is a road...
Not a destination
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Real wallpaper different of the real wallpaper

Post by PB »

I don't understand what you mean. Have you asked in French in the French
forums? You'd be able to describe it better in your native tongue.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

I ran his program and it shows the desktop background as the background of the window it opens, kind of like a real window. I think what is going wrong is that he is not getting the background that he can see on his computer but rather the one that is set up on the server that he is running off of.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post by Kwai chang caine »

Hello and thank you for your answer

@Pb
Yes yes, before disturbing you with my bad English, I have asked this question on the French forum
Anybody of this forum knows it why?
Because on the French forum I had 45 visits and no answer.
I did not to be polite dare to speak in French, but if you ask me :

http://www.purebasic.fr/french/viewtopic.php?t=6261

@Dereck
I believe that you understood my probleme
ImageThe happiness is a road...
Not a destination
Post Reply