开发者

GDI+ With C++Builder?

开发者 https://www.devze.com 2022-12-27 13:09 出处:网络
How do I use GDI+ with C++Builder? Can someone give me a simple example of creating a surface an开发者_开发技巧d drawing a circle on it?It would be similar to coding a normal Windows program in C usin

How do I use GDI+ with C++Builder? Can someone give me a simple example of creating a surface an开发者_开发技巧d drawing a circle on it?


It would be similar to coding a normal Windows program in C using Visual Studio.

Basically:

  • include "gdiplus.h"
  • link to gdiplus.lib
  • call GdiPlusStartup at the start of your program (before main window creation)
  • call GdiPlusShutdown at the end of your program (after the message loop has ended and the main window's been destroyed)

Here's a link with a sample program:

http://msdn.microsoft.com/en-us/library/ms533895(v=VS.85).aspx

MSDN contains much information on this topic:

http://msdn.microsoft.com/en-us/library/ms533802(v=VS.85).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消