Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-11-2003, 12:44 PM   #1 (permalink)
paul
Registered User
 
Join Date: Feb 2003
Location: NS, Canada
Posts: 15
paul is on a distinguished road
Windows Widgets

I have just a few questions about widgets in windows.

1: Are they stored in a dll or drawn inside the program?

2: Which dll file(s) are they stored in?
paul is offline   Reply With Quote
Old 03-11-2003, 06:02 PM   #2 (permalink)
devin
Registered User
 
Join Date: Mar 2003
Location: California
Posts: 9
devin is on a distinguished road
Send a message via ICQ to devin
Under standard Win32 C programming they are probably stored in the DLL's "user32.dll", "gdi.dll" and "gdi32.dll" which most, if not all, Windows programs link with.

However, to draw widgets (buttons, scroll bars, etc) you make calls to CreateWindow();

Under MFC its different since each widget is wrapped up in classes with names like CScrollBar, etc.

You can also create widgets on a dialog window using a resource editor and then make a call to ShowWindow();

More advanced widgets (technically they are called "controls" on Windows) are also in "comctrl32.dll" (common controls)

Hope that helped.
devin is offline   Reply With Quote
Old 03-12-2003, 07:47 AM   #3 (permalink)
paul
Registered User
 
Join Date: Feb 2003
Location: NS, Canada
Posts: 15
paul is on a distinguished road
Would it be possible to change the sources of wine so that it used GTK/QT to render the widgets?
paul is offline   Reply With Quote
Old 03-12-2003, 08:05 PM   #4 (permalink)
devin
Registered User
 
Join Date: Mar 2003
Location: California
Posts: 9
devin is on a distinguished road
Send a message via ICQ to devin
I'm sure its possible just difficult. The wine code base is huge and draws widgets fine. Wine really needs more help in getting stuff supported.
devin is offline   Reply With Quote
Old 03-15-2003, 11:40 AM   #5 (permalink)
paul
Registered User
 
Join Date: Feb 2003
Location: NS, Canada
Posts: 15
paul is on a distinguished road
I would help, but I dont have a clue how most of it works. I like to stick to simple programs.
paul is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing the Windows desktop remotely bdl Windows 7 11-10-2004 07:39 AM
Microsoft probes Windows code leak redhead Code Newbie News 0 02-13-2004 12:41 AM
Problem #3 -- Windows Danish Standard C, C++ 2 03-25-2003 03:39 PM
Windows server 2003? CaN Opener Lounge 3 03-24-2003 05:22 AM
Bloody Windows IE rendering sarah31 PHP 6 06-05-2002 07:31 PM


All times are GMT -8. The time now is 03:54 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting