Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: CreateWindow


Related Topics

  
  The Old New Thing : What is the HINSTANCE passed to CreateWindow and RegisterClass used for?
The scratch program is always in the main EXE, so it should pass the HINSTANCE of the main EXE as well.
Raymond has made many, many posts on the behaviour of the dialog manager and modal loops; if you read those posts you should be able to work out how to emulate the dialog's window procedure.
The MSDN doc for CreateWindow also incorrectly states that if the x parameter is set to CW_USEDEFAULT, the system ignores the y parameter.
blogs.msdn.com /oldnewthing/archive/2005/04/18/409205.aspx   (987 words)

  
 SSV - BB1 FPPC   (Site not responding. Last check: 2007-10-10)
The CreateWindow function builds a window based on a window class created with the RegisterClass function or based on a predefined control class.
CreateWindow takes several parameters for window location, window size, window style and so on.
With CreateWindow you can use predefined window classes such as button controls, checkbox controls, radio button controls, static text controls, edit controls, scrollbar controls and more (see also BB1 WINDOWS CONTROLS).
www.ssv-embedded.de /ssv/pc104/p27.htm   (363 words)

  
 Tutorial 1:Using CreateWindow
CreateWindow returns an object of type TGadget which we have chosen to call MyFirstWindow.
What we now see is that the size of 320 x 240 that we have specified in the CreateWindow parameter is actually now specifying the size of the central panel (the client) of this window.
The other items like the status bar, the menu bar, the borders as well as the titlebar now is added on top of the central panel thus resulting in a bigger window being created.
www.2dgamecreators.com /maxgui/CreateWindow.html   (1291 words)

  
 VCL Topics: Introduction to Windows Controls
If you are programmatically creating a VCL control, to specify that it is a child, we saw that you must pass the name of its owner to the control’s pointer and you must assign the name of its parent to the Parent property.
If you are using the CreateWindow() or the CreateWindowEx() functions, to set the left distance, pass the desired value as the X argument.
If you are creating the control using the CreateWindow() or the CreateWindowEx() functions, specify the value for the distance from the left border of the parent window to the left border of the control as the nWidth argument.
www.functionx.com /bcb/topics/introwindows.htm   (6414 words)

  
 Open Inventor Technical FAQ / Microsoft Windows   (Site not responding. Last check: 2007-10-10)
The name of the function to create a window in WINAPI programming is CreateWindow, and this function is used to specify the position and size a window.
Detailed information on CreateWindow is available in the VC++ help file: the fourth and fifth parameters to CreateWindow are the desired window position, and the sixth and seventh parameters are the desired window size.
Detailed information on CreateWindow is available in the VC++ help file, but the relevant info for this question is that the fourth and fifth parameters to CreateWindow are the desired window position, and the sixth and seventh parameters are the desired window size.
www.tgs.com /pro_div/Support/FAQs/faq_tech_oiv/Category10.htm   (1799 words)

  
 Visual C++ Unleashed vcu09fi.htm
Through CreateWindow the application controls minor aspects of the new window, such as its size, position, and appearance.
This parameter should not be confused with the class style, passed to RegisterClass through the WNDCLASS structure when the new window class is registered.
While the class style determines some of the permanent properties of windows belonging to that class, the window style passed to CreateWindow is used to initialize the more transient properties of the window.
docs.rinet.ru /VidimyyC/vcu09fi.htm   (8994 words)

  
 QWinHost Class
Calls createWindow() if no window has been set explicitly using setWindow().
This function is called by the Qt framework, and you should not normally need to call it yourself.
Any window created by a reimplementation of createWindow() is destroyed.
doc.trolltech.com /solutions/qtwinmigrate/qwinhost.html   (360 words)

  
 class5a
The height and width parameters are set to 0, ==>icon size is determined by the icon resource data.
Use the fact that during a WM_CREATE message, the lParam is a pointer to a structure of type CREATESTRUCT that has an hInstance member.
When a control is selected with the mouse, Windows sends a WM_COMMAND message to control's parent window; the control's ID value is placed in the low order word of the wParam of the message, so we can do a switch/case on LOWORD(wParam) to find out which button it was.
www.cs.binghamton.edu /~reckert/360/class5a.htm   (3968 words)

  
 Ramblings » Blog Archive » How to use CreateWindow to make a dialog
So one of the challenges that I’ve faced with working on the RB framework is how to mesh the Win32 APIs with the REALbasic way of doing things to accomplish a goal.
When you call CreateWindow, the window manager starts firing off messages left and right, before the call has even completed.
By using the system’s WndProc until CreateWindow returns, you’re going to miss out on messages you may not want to miss out on.
ramblings.aaronballman.com /?p=769   (1023 words)

  
 Win32 Tutorial - Lesson 7: Anatomy and Characteristics of a Window
A window is primarily distinguishable from the rest of the screen by its being surrounded by borders.
In the programming world, this word or group of words is also referred to as the caption.
When you are a window using the CreateWindow() or the CreateWindowEx() functions, you can specify the caption by passing a string to the lpWindowName argument.
www.functionx.com /win32/Lesson07.htm   (1458 words)

  
 CreateWindow
It specifies the window class, window title, window style, and (optionally) the initial position and size of the window.
A pointer to a value to be passed to the window through the CREATESTRUCT structure passed in the lParam parameter the WM_CREATE message.
When using CreateWindow to create controls, such as buttons, check boxes, and static controls, use lpWindowName to specify the text of the control.
www.sxlist.com /techref/os/win/api/win32/func/src/f11_14.htm   (5842 words)

  
 Tech Note 25e: Using Windows
I don't use the command in my applications "Amisol" and "AmiKuji", but bitmaps are drawn on the screen by default.
It can be understandable that drawing happens in the current window, but it may not be acceptable to have an object placed at a different place.
So there is a little problem, but with CreateWindow you can easily scroll images in NS Basic.
www.nsbasic.com /palm/info/technotes/TN25e.htm   (577 words)

  
 Problems creating Window (CreateWindow) - GameDev.Net Discussion Forums   (Site not responding. Last check: 2007-10-10)
When I make a call to CreateWindow, it returns NULL (0).
My register class seems to be working fine, and I can't figure out why it keeps giving me this error from CreateWindow (everything looks fine to me too).
you also may leave out any createwindow equalities that actually are zero.
www.gamedev.net /community/forums/ViewReply.asp?id=473544   (738 words)

  
 SSV - MS WINDOWS
The CreateWindow parameters for the window start position are x= y= 0 (download the C sourcecode, or download the Windows EXE).
The first push button is created by the CreateWindow function direct over the two BB2TD touch panel keys with the default scan codes 0x24 and 0x25.
The parameters for width and height are the size of the buttons.
www.ssv-embedded.de /ssv/pc104/p88.htm   (1178 words)

  
 Using Windows95 Common Controls Using the API   (Site not responding. Last check: 2007-10-10)
All you have to do is make sure the button has the style BS_BITMAP either in the rc file or CreateWindow().
To set the bitmap in the button you would call: SendMessage(GetDlgItem(hdlg, ID_BTN1), BM_SETIMAGE, IMAGE_BITMAP, LPARAM(hbitmap)); The only other step is to size the button at runtime to the size of the bitmap.
This is an easy way to store a list of images to be inserted into the listview.
bdn.borland.com /article/17072   (4106 words)

  
 GuiDesigner Reference
Call a grid function directly with a CreateWindow message to create one grid of their grid type in a window just big enough to contain the grid.
CreateWindow messages must be processed in message processing subroutines within grid functions, so no standard message functions are provided for CreateWindow.
If the grid is attached to a window, that is, it was created by CreateWindow, the window containing the grid is also destroyed and removed from the display.
www.maxreason.com /software/xbasic/documentation/guirefer_11.htm   (9142 words)

  
 PEcreate
Location and size of object passed to the Windows CreateWindow function.
Parent window to place control passed to the Windows CreateWindow function.
This function returns the handle which was assigned by the Windows operating system.
www.gigasoft.com /Webhelp/Peonlref/PEcreate.htm   (365 words)

  
 Controls
In our example, we will have two checkboxes for "male" and "pregnant" If the user tries to set both to on, then the system will turn the other one off with a nasty error message.
CheckBox1a = CreateWindow ("button","1A",WS_CHILDWS_VISIBLEBS_AUTORADIOBUTTONWS_GROUP, 100,100,50,50,hWnd, (HMENU) 1, ((LPCREATESTRUCT) lParam)->hInstance, NULL); CheckBox1b = CreateWindow ("button","1B",WS_CHILDWS_VISIBLEBS_AUTORADIOBUTTON, 100,200,50,50,hWnd, (HMENU) 2, ((LPCREATESTRUCT) lParam)->hInstance, NULL); CheckBox2a = CreateWindow ("button","2A",WS_CHILDWS_VISIBLEBS_AUTORADIOBUTTONWS_GROUP, 200,100,50,50,hWnd, (HMENU) 3, ((LPCREATESTRUCT) lParam)->hInstance, NULL); CheckBox2b = CreateWindow ("button","2B",WS_CHILDWS_VISIBLEBS_AUTORADIOBUTTON, 200,200,50,50,hWnd, (HMENU) 4, ((LPCREATESTRUCT) lParam)->hInstance, NULL);
We respond to each one of these with a message that says that it was changed.
www.wiu.edu /users/musp1/control.html   (1106 words)

  
 How to add ATL control containment support to any window in Visual C++
Create the ActiveX controls: use the WIN32 CreateWindow() function, specify "AtlAxWin" as the class name, and then specify either a GUID, a ProgID, or an URL as the title.
// Make sure that the module handle you pass to CreateWindow is the // same module handle where AtlAxWinInit() was called from.
The HWND returned from CreateWindow() for the control is passed as the first parameter in both functions.
support.microsoft.com /kb/q192560   (444 words)

  
 [Xcb] obj-xcb questions
At the least, you have to allow constructing a window > > object from an existing window ID without having CreateWindow called on > > it, for example.
(The window ID might have come from QueryTree, say.) > > You might also consider allowing a particular window ID to be used in a > > CreateWindow, then DestroyWindow, then another CreateWindow -- I believe > > the protocol allows that, although it's probably unwise and confusing.
Yeah, that addresses an important point, but I was asking more about when requests like CreateWindow are issued.
lists.freedesktop.org /archives/xcb/2006-June/001721.html   (797 words)

  
 Registering a Class in a DLL
If a class is registered in a dynamic-link library (DLL) with the RegisterClass() function and an application uses this class when creating a window or a dialog box, then the CreateDialog() or CreateWindow() call in the application will fail.
After registering the window class using the CS_GLOBALCLASS class style, calling CreateWindow or CreateDialog from an application should work correctly.
However, if the intent is to have the DLL own the message queue, this is not possible.
support.microsoft.com /kb/97758   (618 words)

  
 Long Parameter List
You can group stuff that belongs together in parameter object, but not all parameters in a LongParameterList can be sensibly crammed together in parameter objects.
On the other hand, if you had 4 separate variables or constants like the above, or if you cared about performance, say you wanted to draw tons of rectangles in a game, than the unfolded variables may be arguably better.
Microsoft APIs are rarely that consistent (the Win32 API was formed by accretion more than by design).
c2.com /cgi/wiki?LongParameterList   (1432 words)

  
 How to tell CreateWindow about your Client Area   (Site not responding. Last check: 2007-10-10)
Technical Notes Database TN2324C.txt How to tell CreateWindow about your Client Area Category :Win16 API Platform :All Product :C++ All Description: Q: I am trying to determine the parameters to pass to my CreateWindow call.
I know I want my CLIENT area to be a certain specific size, but Windows always interprets the parameters to CreateWindow as the overall WINDOW size (including the caption, scroll bars, etc.).
This function takes a rectangle specifying a DESIRED CLIENT area size and converts it to the equivalent WINDOW size (which can then be passed to CreateWindow).
bdn.borland.com /article/17324   (138 words)

  
 Create Window (API Reference Call)
How to use CreateWindow API Call in Delphi
For the corresponding "live" discussions, post in the active topic forum here.
Please follow the guidelines set forth in the Suite101.com Posting Etiquette when adding to the discussion.
www.suite101.com /discussion.cfm/delphi_programming/67431   (85 words)

  
 SDuperStrict and MaxGUI?
With SuperStrict you have to declare what kind of variable all your variables are.
CreateWindow returns a TGadget, but MainWindow is an integer.
You can use group option with CreateWindow, test this code if you have time :), click somewhere on the big window and you can see the diffrents.
www.blitzbasic.com /Community/posts.php?topic=54864   (240 words)

  
 CodeGuru Forums - How Many Window Classes exist: i,e, CreateWindow('ClassName", ..
I have sorta been playing around with TOOLTIPS and have seen many examples that use CreateWindow.
Official list of Window Classes can be found in the documentation of CreateWindow API in MSDN.
and try to create all possible class names (for example, less than 32 char long) and see for which one CreateWindow() will succeed.
www.codeguru.com /forum/showthread.php?threadid=405764   (547 words)

  
 DevX.com Forums - Multiline Centered Button
Dialogs are part of the resource section of the PE header together with all the strings, bitmaps, icons etc. This makes it possible to use a resource editor to change the appearence of a dialog without recompiling the code.
So dialog boxes are created with CreateDialog or CreateDialogEx and all the buttons and other windowed controls on the dialog are created with CreateWindow or CreateWindowEx.
try debugging the dialog that displays correctly, basicaly put a bp on both createwindow and createwindowex functions and when the program breaks simply examine the arguments passed to the function.
forums.devx.com /showthread.php?threadid=154440   (531 words)

  
 CreateWindow should not activate invisible minimized or maximized window.   (Site not responding. Last check: 2007-10-10)
CreateWindow should not activate invisible minimized or maximized window.
Previous message: Unable to start UTF-8 encoded executable in UTF-8 locale - one line fix included
ChangeLog: CreateWindow should not activate invisible minimized or maximized window.
www.winehq.com /pipermail/wine-patches/2005-November/022366.html   (137 words)

  
 [No title]
Ÿ¨Child Windows ¡ Ÿ¨ùHandle to child window is returned by CreateWindow().
Provide an ID for the child window (as 9th parameter in CreateWindow).
Parent must provide a handler for the user-level message that will be sent by child when event of interest occurs.
www.cs.iit.edu /~cs351/Lectures.S04/Lecture11.ppt   (797 words)

  
 VA Smalltalk Base User's Guide   (Site not responding. Last check: 2007-10-10)
createWindow "Private - Creates a window." shell := CwTopLevelShell createApplicationShell: 'shell' argBlock: [:w
If you typed in the text shown above, createWindow is displayed in the list of methods.
Follow the above steps to create the following six more methods for the Window Creation category.
www.instantiations.com /VAST/Docs/sg/stug118.htm   (601 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.