Click here to Skip to main content
15,900,254 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 6:29
Sarriss1-Oct-08 6:29 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 6:53
Mark Salsbery1-Oct-08 6:53 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 7:03
Sarriss1-Oct-08 7:03 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 7:12
Mark Salsbery1-Oct-08 7:12 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 7:25
Sarriss1-Oct-08 7:25 
GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 7:34
Mark Salsbery1-Oct-08 7:34 
QuestionRe: Redraw Pin
Mark Salsbery1-Oct-08 7:36
Mark Salsbery1-Oct-08 7:36 
AnswerRe: Redraw Pin
Sarriss1-Oct-08 9:49
Sarriss1-Oct-08 9:49 
Here is the register

void RegWnd::RegChildWindow(HINSTANCE hInstance, char *ClassName, WNDPROC WndProc, LPCTSTR MenuName)
{

	wcc.cbSize = sizeof(WNDCLASSEX);
	wcc.style = CS_VREDRAW|CS_HREDRAW|CS_DBLCLKS;
	wcc.lpfnWndProc = WndProc;
	wcc.cbClsExtra = 0;
	wcc.cbWndExtra = 0;
	wcc.hInstance = hInstance;
	wcc.hIcon =  static_cast<hicon>(LoadImage(  hInstance,
                                              MAKEINTRESOURCE(IDI_MAIN),
                                              IMAGE_ICON,
                                              255,
                                              255,
                                              LR_DEFAULTCOLOR));
	wcc.hCursor = LoadCursor(NULL, IDC_ARROW);
	wcc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
	wcc.lpszMenuName = MenuName;
	wcc.lpszClassName = ClassName;
	wcc.hIconSm =  static_cast<hicon>(LoadImage(  hInstance,
                                              MAKEINTRESOURCE(IDI_MAIN),
                                              IMAGE_ICON,
                                              16,
                                              16,
                                              LR_DEFAULTCOLOR));

}</hicon></hicon>



here is the create

HWND CreateChild(HINSTANCE hInstance,
				LPCTSTR ClassName,
				LPCTSTR WndName,
				HWND parent,
				DWORD dStyle	= WS_OVERLAPPEDWINDOW|WS_CHILD,
				DWORD dXStyle	= 0L,
				int xPos		= CW_USEDEFAULT,
				int yPos		= CW_USEDEFAULT,
				int Width		= 400,
				int height		= 400);

GeneralRe: Redraw Pin
Mark Salsbery1-Oct-08 10:38
Mark Salsbery1-Oct-08 10:38 
GeneralRe: Redraw Pin
Sarriss1-Oct-08 11:06
Sarriss1-Oct-08 11:06 
Questioncreate directory hierarchy Pin
MANISH RASTOGI1-Oct-08 1:38
MANISH RASTOGI1-Oct-08 1:38 
AnswerRe: create directory hierarchy Pin
toxcct1-Oct-08 2:03
toxcct1-Oct-08 2:03 
JokeRe: create directory hierarchy Pin
Roger Stoltz1-Oct-08 2:41
Roger Stoltz1-Oct-08 2:41 
JokeRe: create directory hierarchy Pin
toxcct1-Oct-08 2:42
toxcct1-Oct-08 2:42 
JokeRe: create directory hierarchy Pin
CPallini1-Oct-08 5:37
mveCPallini1-Oct-08 5:37 
GeneralRe: [Solved] create directory hierarchy Pin
MANISH RASTOGI2-Oct-08 19:12
MANISH RASTOGI2-Oct-08 19:12 
GeneralRe: [Solved] create directory hierarchy Pin
MANISH RASTOGI2-Oct-08 19:04
MANISH RASTOGI2-Oct-08 19:04 
AnswerRe: create directory hierarchy Pin
Alan Balkany1-Oct-08 3:55
Alan Balkany1-Oct-08 3:55 
GeneralRe: [Solved] create directory hierarchy Pin
MANISH RASTOGI2-Oct-08 19:20
MANISH RASTOGI2-Oct-08 19:20 
AnswerRe: create directory hierarchy Pin
Mark Salsbery1-Oct-08 6:06
Mark Salsbery1-Oct-08 6:06 
GeneralRe: [Solved] create directory hierarchy Pin
MANISH RASTOGI2-Oct-08 19:17
MANISH RASTOGI2-Oct-08 19:17 
AnswerRe: create directory hierarchy Pin
Hamid_RT1-Oct-08 8:58
Hamid_RT1-Oct-08 8:58 
GeneralRe: [Solved] create directory hierarchy Pin
MANISH RASTOGI2-Oct-08 19:09
MANISH RASTOGI2-Oct-08 19:09 
AnswerRe: create directory hierarchy Pin
Brij2-Oct-08 3:01
mentorBrij2-Oct-08 3:01 
GeneralRe: create directory hierarchy Pin
MANISH RASTOGI2-Oct-08 19:18
MANISH RASTOGI2-Oct-08 19:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.