15,913,758 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by weylspinor (Top 13 by date)
weylspinor
16-Apr-11 20:12pm
View
That works! Thanks!
weylspinor
16-Apr-11 18:42pm
View
Hi, thanks. I added the edited code.
weylspinor
16-Apr-11 18:07pm
View
If I try to put the StreamGeometry declaration inside the loop, so that a new StreamGeometry object is declared on every iteration of the loop, the program only shows 2 shapes. It seems like it won't allow more than 1-2 StreamGeometry objects.
weylspinor
17-Sep-10 5:40am
View
Unless of course you recommend just using ATL or MFC. And, by the way... that's the confusing thing... which one should I use?
weylspinor
17-Sep-10 5:39am
View
I'm kind of a novice at Windows. So I was assuming that these kinds of problems had already been solved a long time ago without having to use ATL and MFC. That's the only reason, really. It's kind of intimidating, when you're just starting out, to see all these files that you have no idea what they are for. I'm a bit of a minimalist, as a habit.
Would you mind pointing me to a tutorial on how to paint the control myself?
Many thanks!
weylspinor
17-Sep-10 5:12am
View
Okay... I read the articles you created linked to above. They are very nice. Correct me if I'm wrong... Are you saying that it's not possible to set the orignial menu and original styles without using ATL or MFC?
weylspinor
13-Sep-10 11:23am
View
Creating the full screen works. Undoing the full screen doesn't.
weylspinor
12-Sep-10 22:12pm
View
But I must be able to change the ones I selected, because I was able to modify them when I created the full screen.
weylspinor
12-Sep-10 3:10am
View
My guess above was wrong. It should be:
SetWindowLong(m_hWnd, GWL_STYLE, dwStyle & ~dwRemove);
This is logical since you are getting the previous state, and doing the opposite for the selected options. For some reason it doesn't work, however... Not sure why.
weylspinor
11-Sep-10 5:16am
View
You're a genius, thanks! It would have taken me about 3 weeks to figure out the LockWindowUpdate part. The reverse part is easy, no? Just use:
LockWindowUpdate(m_hWnd); NULL);
SetWindowLong(m_hWnd, GWL_STYLE, dwStyle & dwRemove);
HDC hDC = GetWindowDC(NULL);
LockWindowUpdate(NULL); // allow redrawing
SetWindowPos(m_hWnd, NULL, 0, 0, GetDeviceCaps(hDC, HORZRES), GetDeviceCaps(hDC, VERTRES), SWP_FRAMECHANGED);
BTW How important are the double colons in front of the functions? I've never seen anyone do that before.
weylspinor
10-Sep-10 0:29am
View
DWORD dwStyle = ::GetWindowLong(h_main, GWL_STYLE);
DWORD dwRemove = WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX;
DWORD dwNewStyle = dwStyle & ~dwRemove;
::SetWindowLong(h_main, GWL_STYLE, dwNewStyle);
::SetWindowPos(h_main, NULL, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE
| SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
HDC hDC = ::GetWindowDC(NULL);
::SetWindowPos(h_main, NULL, 0, 0, ::GetDeviceCaps(hDC, HORZRES), ::GetDeviceCaps(hDC, VERTRES), SWP_FRAMECHANGED);
Thanks! Two more quick things: my menu bar is still visible, and the border is still visible as well. Is there a quick way to fix that. And how do I enable someone to Esc back to a regular maximized window?
weylspinor
28-Aug-10 3:25am
View
Thanks! It finally worked deleting the 32-bit icons from the .ico files. BTW... if the deployment expects 32-bit icons by default, and Visual Studio can't create or edit them, what is everyone else using to create/edit them? Thanks!
weylspinor
28-Aug-10 2:41am
View
Thanks for this! I ended up using it for my project. By the way, I'm new to this open stuff. Am I allowed to market my app without paying royalties to opencv if I use it? Thanks!
Show More