WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

Common Controls on Dialogs, adding a slider, progressbar, status bar or a richedit control, the dialog box does not display anymore.

thierry
Quote Post


New Member
*

Group: Members
Posts: 14
Member No.: 13
Joined: 18-May 04


Hello,

This is most probably a silly question, but i have a problem with a dialog box.

I created a new project using the wizard (Dialog Box template).

In this example, when you select the about menuitem, the application displays a dialog box, containing an editbox, and 2 buttons.

I tried to add some controls (without any code change).
Buttons, scrollbars, Edit, static text : OK

When adding a slider, a progressbar, a status bar, a richedit control, the dialog box does not display anymore.

I am sure i am doing something wrong, but what?

Thanks for the help
PMEmail Poster
Top
akyprian
Quote Post


Administrator
******

Group: Admins
Posts: 2307
Member No.: 1
Joined: 12-May 04


Hi,

You don't do something wrong, you just don't do everything tongue.gif

In your code, place

Invoke InitCommonControlsEx, ADDR icce
or
Invoke InitCommonControls

(depending on which common controls you are using

To be able to use richedit, you need to

Invoke LoadLibrary,ADDR szRichEdit
MOV hRichEd,EAX



Do not forget to use Invoke FreeLibrary,hRichEd before your program terminates

Cheers,

Antonis
PMEmail PosterUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google