Solved

Changing dialog appearance

Posted on 2000-04-12
4
267 Views
Last Modified: 2013-11-20
Hi,

I want to change the appearance of my CDialog (um, Dialog App) wgile the program's running, but I have no idea if this is possible. I think it is since I found some functions called "ModifyStyle" and "ModifyStyleEx" (but can't get them to do what I want). I want to add/remove the border of my dialog when the user hits a certain key... I don't know if it's possible but still.

Thanks :)
0
Comment
Question by:mgdPaul
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:vachooho
Comment Utility
ModifyStyle(WS_BORDER, 0); // to remove
ModifyStyle(0, WS_BORDER); // to add
do not forget to call UpdateWindow();
it should works
0
 

Author Comment

by:mgdPaul
Comment Utility
Thanks! :) It works indeed :)
Only one thing, when I use this the title bar does disappear, but there's still some kind of border around my dialog... is it also possible to remove the entire border? (like when you select "Border: None" in the resource editor/dialog properties)
0
 
LVL 5

Accepted Solution

by:
vachooho earned 50 total points
Comment Utility
look in dialog editor and notice with which flags your dialog created.
Then remove all set flags using ModifyStyle()

actualy window with no frAME coudl have only WS_POPUP (or other WS_xxx window style - WS_OVERLAPPED ... ) and WS_VISIBLE visibility flags.
0
 

Author Comment

by:mgdPaul
Comment Utility
Thanks! :)
This seems to work just fine :)
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 122
sum67 challenge 35 89
wait notify demo infinite loop 3 80
unix example issues 18 44
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video discusses moving either the default database or any database to a new volume.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now