Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. forlorn

    Custom Control (Soccer League Table) From Ground-Up

    Hi EORCandy, I'm glad you liked the idea. Actually it's a bit hard to picture it with words but there's a website called www.soccerbot.com and i want to create a table that looks like the tables on that site. I'm thinking to use edit controls as cells to hold the values. But in order this to...
  2. forlorn

    Custom Control (Soccer League Table) From Ground-Up

    Hi, I want to build a soccer league table. But i need a starting point so i need your advices. Where should i start? I'm thinking to derive my main class from CWnd. Can you recommend me a good tutorial for this purpose? Or a general tutorial for GUI development? Or should i use ActiveX? I'm a...
  3. forlorn

    Some questions on CTreeCtrl

    Hi, i'm trying to writing a program to manage my mp3 collection. The interface is splitted in two parts and the left part contains a tree control where bands, albums and songs are shown. Now i've a few questions : 1) I can add a right-click menu to entire tree but i want to add different...
  4. forlorn

    Sizing Dialog And Scrollbar

    Hi, I have splitted main window and on the left frame, i have a child dialog. There are 2 things i wanna do: 1) To size the dialog according to the screen resolution. For example if the user's screen is set to 1024x800, i want to set dialog's height to 800 on startup. 2) Since the height of...
  5. forlorn

    What is so special about the main View class?

    Hi, All CSonucView, CBitirmeView, CNumerikView and CMenuView are derived from CView. To CSonucView i'm trying to add two views. Maybe i should have written code snippet from CMenuView : // CMenuView::OnCreate m_pAnalizParamView = ( CAnalizParamView * ) m_MenuTab.AddTabView( RUNTIME_CLASS(...
  6. forlorn

    What is so special about the main View class?

    Hi, I am using a splitter to divide the screen into 2. In each part i use a CTabCtrl driven class. So i aim to place 4 View classes. The problem occurs when i try to place the (AppName)View class (I don't know the term used for this class, sorry). Here are the code snippets: // Application's...
  7. forlorn

    Working With Multiple View Classes

    And now thinking, would it work if try use Doc class? Are Doc classes mandatory?
  8. forlorn

    Working With Multiple View Classes

    Hi, I'm working on a project with a tab control which has 2 tabs. Clicking on each tab activates an appropriate view class. When user clicks one tab the below code is activated in OnselChange function : pMainFr->m_Splitter2.DeleteView( 1, 0 ); pMainFr->m_Splitter2.CreateView( 1, 0...
  9. forlorn

    Updating Modeless Dialog's Variables

    sorry for the second one
  10. forlorn

    Updating Modeless Dialog's Variables

    In fact there's nothing important in my OnButton function. It looks like this: void CTheClass::OnButton() { UpdateData( TRUE ); CMainFrame *pMainFr = ( CMainFrame * ) AfxGetMainWnd(); CBitirmeDoc *pDoc = ( CBitirmeDoc * ) pMainFr->GetActiveDocument()...
  11. forlorn

    Updating Modeless Dialog's Variables

    In fact there's nothing important in my OnButton function. It looks like this: void CTheClass::OnButton() { UpdateData( TRUE ); CMainFrame *pMainFr = ( CMainFrame * ) AfxGetMainWnd(); CBitirmeDoc *pDoc = ( CBitirmeDoc * ) pMainFr->GetActiveDocument()...
  12. forlorn

    Updating Modeless Dialog's Variables

    Hi, i have a modeless dialog in my application. I declared its variables private and i want to access them through Get & Set methods. When i press a button on the dialog i want to get the changed variables ( they hold values of textboxes ). So i use UpdateData(TRUE) in OnButton. But all i get...
  13. forlorn

    How to use CMap

    yes, i did. But now i found that, it's a bit embarassing to admit, i forgot to include the necessary header (afxtempl.h). But my question about the parser is still valid. If you know a good one, please let me know.
  14. forlorn

    How to use CMap

    Hi, I desperately need a function parser for 3 ( preferably 4 ) variables. But i couldn't find one that suits my deeds. I only could find a parser for 3 variables written in Java and now i'm trying to translate it to Visual C++. The question is what is the equivalent of HashTable in VC++? I...
  15. forlorn

    first word

    Hi, The code below finds the length for the first word, but i'm not sure if it is what you asked for as mentioned &quot;specific code for MS C++ 6.0&quot;. char *x = &quot;This is my sentence&quot;; int c = 0; char v; const char s = ' '; int t = strlen( x ); for( int i = 0 ; i < t; i++...
  16. forlorn

    OpenGL Rotating Problem

    Thank you for your time.
  17. forlorn

    OpenGL Rotating Problem

    Hi, I have a simple cube-rotating program( from DevX openGL tutorial). Mouse works fine when i have this piece of code CPaintDC dc(this); CBitirmeDoc* pDoc = GetDocument(); pDoc->RenderScene(); SwapBuffers(dc.m_ps.hdc); in OnPaint method. But i want to the cube to be drawn after i press a...
  18. forlorn

    Why do dialogs close when pressing enter in edit box?

    OK, i fixed it now. If anyone is suffering from this problem too, check out http://www.codeguru.com/editctrl/edit_cr.shtml Also, there's another way, much simpler than this one, 1) Override OnInitDialog() 2) Add : SetDefID(-1) This solution is posted by Mr.Hao Xu in reply to that solution...
  19. forlorn

    Why do dialogs close when pressing enter in edit box?

    ...and how can i avoid it? Thanks.
  20. forlorn

    Catching Button Clicks On A Dialog From Doc Class

    Thank you very much.

Part and Inventory Search

Back
Top