comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  draws in black instead of color         


Author: jmichae3
Date: Jul 22, 2008 12:44

This program always draws in black instead of in color. any clues
why?
Jim Michaels

/* randlinecenter.c -- Displays Random Lines
(c) Charles Petzold, 1990
half modified by Jim Michaels July 22, 2008

*/
#include
#include
#include
#include

LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam,
LPARAM lParam);
void DrawLine(HWND hwnd);

short cxClient, cyClient, cClient;
short xCenter, yCenter;
Show full article (3.29Kb)
2 Comments
  Dialog IDs         


Author:
Date: Jul 22, 2008 00:35

I have a dialog box that consists of edit controls, where there are several
edit controls in a row, and the row is repeated over and over again. This
was created with Visual Studio's resource editor, and all the controls have
names such as IDC_ACCOUNTDESCRIPTION1, IDC_ACCOUNTNAME1,
IDC_ACCOUNTDESCRIPTION2, IDC_ACCOUNTNAME2, etc.

Is there something like an array I can use to make reading these dialog
boxes easier? I'd like to read one row at a time, based on an ID the
program passes in.

I'm new to Win32, but not programming in general.

Thanks!

Puckdropper
--
If you're quiet, your teeth never touch your ankles.

To email me directly, send a message to puckdropper (at) fastmail.fm
4 Comments