Browse Source

* graph unit win32 fixes.

git-svn-id: trunk@24707 -
marco 12 years ago
parent
commit
d04b286de6
1 changed files with 5 additions and 5 deletions
  1. 5 5
      packages/graph/src/win32/graph.pp

+ 5 - 5
packages/graph/src/win32/graph.pp

@@ -1333,7 +1333,7 @@ begin
          Exit;
          Exit;
       end
       end
     else
     else
-      WindowProcGraph := DefWindowProc(Window, AMessage, WParam, LParam);
+      WindowProcGraph := DefWindowProcA(Window, AMessage, WParam, LParam);
   end;
   end;
 end;
 end;
 
 
@@ -1359,7 +1359,7 @@ begin
       if assigned(commandmessagehandler) then
       if assigned(commandmessagehandler) then
         WindowProcParent:=commandmessagehandler(window,amessage,wparam,lparam);
         WindowProcParent:=commandmessagehandler(window,amessage,wparam,lparam);
     else
     else
-      WindowProcParent := DefWindowProc(Window, AMessage, WParam, LParam);
+      WindowProcParent := DefWindowProcA(Window, AMessage, WParam, LParam);
   end;
   end;
 end;
 end;
 
 
@@ -1443,7 +1443,7 @@ begin
   WinCreate:=0;
   WinCreate:=0;
   if UseChildWindow then
   if UseChildWindow then
     begin
     begin
-       ParentWindow:=CreateWindow('FPCGraphWindowMain', windowtitle,
+       ParentWindow:=CreateWindowA('FPCGraphWindowMain', windowtitle,
                   WS_OVERLAPPEDWINDOW or WS_CLIPCHILDREN or extrastyle, longint(CW_USEDEFAULT), 0,
                   WS_OVERLAPPEDWINDOW or WS_CLIPCHILDREN or extrastyle, longint(CW_USEDEFAULT), 0,
                   maxx+ChildOffset.Left+ChildOffset.Right+1+
                   maxx+ChildOffset.Left+ChildOffset.Right+1+
                     2*GetSystemMetrics(SM_CXFRAME),
                     2*GetSystemMetrics(SM_CXFRAME),
@@ -1458,7 +1458,7 @@ begin
          end
          end
        else
        else
          exit;
          exit;
-       hWindow:=CreateWindow('FPCGraphWindowChild',nil,
+       hWindow:=CreateWindowA('FPCGraphWindowChild',nil,
                   WS_CHILD, ChildOffset.Left,ChildOffset.Top,
                   WS_CHILD, ChildOffset.Left,ChildOffset.Top,
                   maxx+1,maxy+1,
                   maxx+1,maxy+1,
                   ParentWindow, 0, system.MainInstance, nil);
                   ParentWindow, 0, system.MainInstance, nil);
@@ -1473,7 +1473,7 @@ begin
     end
     end
   else
   else
     begin
     begin
-       hWindow:=CreateWindow('FPCGraphWindow', windowtitle,
+       hWindow:=CreateWindowA('FPCGraphWindow', windowtitle,
                   ws_OverlappedWindow or extrastyle, longint(CW_USEDEFAULT), 0,
                   ws_OverlappedWindow or extrastyle, longint(CW_USEDEFAULT), 0,
                   maxx+1+2*GetSystemMetrics(SM_CXFRAME),
                   maxx+1+2*GetSystemMetrics(SM_CXFRAME),
                   maxy+1+2*GetSystemMetrics(SM_CYFRAME)+
                   maxy+1+2*GetSystemMetrics(SM_CYFRAME)+