CoderSource.net
Search
Win32 beginner questions
Started by renzil at 05-14-2006 12:18 PM. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
   05-14-2006, 12:18 PM
renzil is not online. Last active: 5/14/2006 5:07:13 PM renzil

Top 75 Posts
Joined on 05-14-2006
Posts 1
Geeked [8-|] Win32 beginner questions
I'm using Visual C++ 6.0 and coding a project in Win32 (not MFC).

  1. How do you prevent the window from being resized ? I also don't want the maximize icon in the top right to be active.
  2. How do you control the keyboard delay/repeat ?
  3. Where can I find a good timer class that I can implement ?
  4. How do I get the current resolution of the monitor ?
I've tried searching a lot on the net but I keep running into MFC. Can anyone please help ? Thanks in advance.

   Report 
   05-15-2006, 6:19 AM
Yasir is not online. Last active: 11/16/2006 10:02:40 AM Yasir

Top 10 Posts
Joined on 03-15-2006
Posts 44
Re: Win32 beginner questions
Hi
these are few hints for ur questions.
1) Dont used these styles when u create the window "WS_MAXIMIZE","WS_MAXIMIZEBOX", "WS_SIZEBOX" dont use either the styles which includes these styles by default. as WS_THICKFRAME.
2) have look on this article it deals with keyboard delay and repeat. http://www.section508.gov/IRSCourse/mod02/printVC.html
3).. have a look it may be helpfull http://oldmill.uchicago.edu/~wilder/Code/timer/
4) use the following code to get the screen resolution. Cx is width and Cy is height.
int cx = GetSystemMetrics(SM_CXSCREEN);
int cy = GetSystemMetrics(SM_CYSCREEN);

Best Regards
-Yasir
   Report 
   05-31-2006, 1:17 PM
theDentist is not online. Last active: 1/5/2008 4:01:46 PM theDentist

Top 10 Posts
Joined on 12-05-2005
Posts 42
Re: Win32 beginner questions

Hi,

I don't know if we are allowed to recommend books on this forum but I found the best way to learn the basics of Wn32 API programming was from a good book.  I found one by Petzold very good

Regards

Peter


   Report 
   06-03-2006, 2:27 AM
admin is not online. Last active: 12/15/2008 12:36:10 PM admin

Top 10 Posts
Joined on 06-18-2005
Posts 17
Re: Win32 beginner questions
Peter,
  Please feel free to share your thoughts about good books. It is always welcome.

  Any good suggestion which helps the users of the forum will definitely be good.

Thanks
Muthu

   Report 
Codersource.Net » Programming » MFC Programming » Win32 beginner questions

MENU
Home
MFC 
C++
.Net
WIN32
Programming
Forum
My Articles
Welcome to Codersource.Net Login | Register | Faq  

Google
 

NOTES:


Thanks for visiting our CoderSource.net. This site will be improved with more articles. Interested visitors can also submit their articles through the Submit Article link.Your article will also be published after due consideration by the editor. 

© Copyright 2003. All rights on content reserved by CoderSource.net. Contact    About Us