http://ourworld.compuserve.com/homepages/ernies_world/a.htm

Part IV is a problem,



Has anyone tried this in "Windows 2003 " ?, I can?t get the program to run unless I comment the CONTROL statements in rsrc.rc

;----------------------------------------------------------------------------------
#include "resource.h"

#define IDC_EDIT1 3000
#define IDC_EDIT2 3001
#define IDC_EDIT3 3002
#define IDC_SPLITTER1 3003
#define IDC_SPLITTER2 3004
#define IDM_EXIT 3005

MyDialog DIALOG 10, 10, 217, 185
STYLE 0x0004 | DS_CENTER | WS_CAPTION | WS_MINIMIZEBOX |
WS_SYSMENU | WS_VISIBLE | WS_OVERLAPPED | DS_MODALFRAME | DS_3DLOOK
CAPTION "Splitter Control Test Application"
CLASS "DLGCLASS"
BEGIN
EDITTEXT IDC_EDIT1, 4, 6, 209, 69, ES_AUTOHSCROLL | ES_LEFT
; CONTROL "", IDC_SPLITTER1, "HSplitterCtrl", 3, 4,75,209,3
EDITTEXT IDC_EDIT2, 4, 78, 83, 90, ES_AUTOHSCROLL | ES_LEFT
; CONTROL "", IDC_SPLITTER2, "VSplitterCtrl", 4, 87,78,3,90
EDITTEXT IDC_EDIT3, 90, 78, 123, 90, ES_AUTOHSCROLL | ES_LEFT
END

MyMenu MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", IDM_EXIT
END
END

;----------------------------------------------------------------------------------------
obviously the splitter function does not work then.

any ideas on this ???
Posted on 2003-06-16 10:51:44 by WinCC
Yikes. I hate that lol.

I used that "control" rc info from "Programming Windows 95" Could MS have really broke all that legacy code? I kinda doubt that, there should be a fix for that.

A work-around would be to register the class and createwindow in the code. Ugly but safe and sure.
Posted on 2003-06-17 19:23:31 by Ernie
I compiled everything on a Windows 2000 machine and it run as it should then I moved it to a Windows 2003 machine and then it refuses to run.For now I diched the .dll and use the needed code in my main file.
Posted on 2003-06-18 00:17:36 by WinCC