Started by newold, September 05, 2014, 02:48:05 pm
Quote from: winkioI do not speak to bricks, either as individuals or in wall form.
Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.
Quote from: Blizzard on September 05, 2014, 03:01:04 pmI think you might have to use RegisterClass or RegisterClassEx first to make this work properly.
newClass = Struct.new(:cbSize,:style,:lpfnWndProc,:cbClsExtra,:cbWndExtra, :hInstance,:hIcon,:hCursor,:hbrBackground,:lpszMenuName,:lpszClassName, :hIconSm) wndclass = newClass.new wndclass.cbSize = wndclass.size wndclass.style = 0 wndclass.lpfnWndProc = 0 wndclass.cbClsExtra = 0 wndclass.cbWndExtra = 0 wndclass.hInstance = nil wndclass.hIcon = nil wndclass.hCursor = nil wndclass.hbrBackground = 5 # COLOR_WINDOW wndclass.lpszMenuName = nil wndclass.lpszClassName = "testclass" wndclass.hIconSm = nilregisterClass = Win32API.new('user32','RegisterClass','i','i')aTom = registerClass.call(??????????)
Quote from: ForeverZer0You can take a look at what I did here.http://forum.chaos-project.com/index.php/topic,7829.0.htmlMight help you figure out your problem.