WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

CTL3D

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Dialog Box Interface and CTL3DV2.DLL

Keywords: Dialog Box Interface and CTL3DV2.DLL 

PROBLEM: My Dialog Boxes look not only UGLY but bizarre!! Can I change how they look?
or
Receiving an Error: "CTL3DV2.Dll is incorrectly installed"

The interface of the Dialog Boxes is controlled by CTL3DV2.DLL. This is a DLL from Microsoft used to add the 3D effects to controls and boxes. Per Microsoft specs, it MUST be installed in the Windows System directory.

If you have an old Dll or if the Dll is not in the Windows System directory your dialog boxes can look strange or you might possibly receive an error. You can correct this by either turning the 3D effects off or by making sure the Dll is in the proper place.

To get rid of the 3D effects by telling WinBatch to ignore the Dll.

In the WWWBATCH.INI file add PrettyDialogs=0 to the Main section.

Example:

	[MAIN]
	prettydialogs=0
Note: If you're using the 32-bit version under Windows 95, you always get 3D dialogs -- the "PrettyDialogs" setting is ignored.

Making the change on more than one pc

If you have several users, you may want to use WinBatch to make this change. At the top of a script use the function IniWritePvt to change the WWWBATCH.INI file.

Example:

	IniWritePvt("main", "prettydialogs", "0", "c:\windows\wwwbatch.ini")

You may still receive the error message the first time this script is run. However, the next time the script is run, the change will have already occurred and no error will result.

To Locate the Dll and the Windows System Directory.

Use the following code to figure out where the DLL is and where the Windows System Directory is located. If they match up, then its installed properly.

Example:


	a=FileLocate("CTL3DV2.DLL")
	b=DirWindows(1)
	Message(a,b)  


Article ID:   W12803
Filename:   Dialog Box Interface and CTL3DV2 DLL.txt
File Created: 1999:04:15:16:49:44
Last Updated: 1999:04:15:16:49:44