GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 10-Jun-2006, 00:25
budihartanto budihartanto is offline
New Member
 
Join Date: Jun 2006
Posts: 3
budihartanto is on a distinguished road

Creating OCX with dialog


Hi All,

Currently, i'm trying to learn about creating OCX in Ms.Visual C++. All books that I've read always giving me an example about drawing something in the OnDraw function of class CxxxCtrl. Well, it's okay for some cases, but I think if only I can have a dialog into my OCX then the program can be created easily.

This is my case. I like to create a kind of OCX of digital clock. Of course I can just write code on OnDraw about the value of Hour, Minute, and Second, and show it on the screen (of course I still have to create message handler from WM_TIMER)

But I think, if only I can have a dialog box, I can put three Static Text on there (to represent Hour, Minute, and Second), and by applying another OCX Timer (named: ieTimer.ocx) on my dialog, I can just change the value of the Hour, Minute and Second easier.

Would anybody can give me any information, about the possibility to create OCX from another control (that have been put onto dialog box)

THanks.
 
 

Recent GIDBlogDeveloping GUIs with wxPython (Part 3) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing values from a different dialog steph MS Visual C++ / MFC Forum 11 21-Jul-2006 18:55
creating tabs in dialog box in vc++ cnvikas MS Visual C++ / MFC Forum 1 21-Apr-2006 07:58
dialog based application hezyse MS Visual C++ / MFC Forum 1 20-Mar-2005 18:16
Help! Some basal questions about MFC xutingnjupt MS Visual C++ / MFC Forum 1 05-Dec-2004 03:38
controling dialog objects & multiple source files omills MS Visual C++ / MFC Forum 0 14-Jul-2004 23:30

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:29.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.