Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

MyFathersSon

@MyFathersSon
About
Posts
12
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • What am I doing wrong?
    M MyFathersSon

    Cheers Mark, that was very helpful. Thanks for your time

    C / C++ / MFC question c++ help

  • cin causes infinite loop in my program
    M MyFathersSon

    Unless your input is an array of strings then use cin>>tempstring otherwise use cin.getline(tempstring, MAXBUFFERSIZE, '\n'); this function takes 3 parameters, and the last one is the delimiter i.e. when to signal the function to return.

    C / C++ / MFC tutorial question

  • What am I doing wrong?
    M MyFathersSon

    Cheers Mark, Unfortunately I feel that the code might be causing problems. I code the control as follows: void CEditableCircleCtrl::DrawControl()//called by OnDraw method { CDC *pDC = GetDC(); if(pDC == NULL) { return; } CRect circlerect; //draw the round rectangle circlerect.top = 0; circlerect.left = 0; circlerect.bottom = 40; circlerect.right = 40; pDC->Ellipse(circlerect); } ... int CEditableCircleCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (COleControl::OnCreate(lpCreateStruct) == -1) return -1; //create the edit box editrect.top = 13; editrect.left = 6; editrect.bottom = 28; editrect.right = 36; editctrl.Create(WS_VISIBLE|WS_CHILD|ES_CENTER,editrect, this, 0); return 0; } How can I get hold of the text? Am I doing something wrong? WM_CHAR doesn't capture any text entered in the control. Where would I place any of your suggestions?

    C / C++ / MFC question c++ help

  • What am I doing wrong?
    M MyFathersSon

    I've used MFC to create a custom control: An Ellipse with an edit control inside, so it appears as a circular edit box. Problem is, I can't get the data out from the edit control whenever I type anything in. I'm using the windows message handler WM_CHAR, but I fear that that message handler is only interested in the rectangle and not the edit control. How do I get access to the edit control's data? Thanks

    C / C++ / MFC question c++ help

  • How to cancel printing using commondialog ctrl
    M MyFathersSon

    Hi All I'd like to know how to cancel a print job (using VB) if the user presses the CANCEL button when the print dialog shows. Any ideas? thanks in advance

    Visual Basic tutorial question career

  • While loop...
    M MyFathersSon

    assuming you've a data control data1.refresh data1.recordsource = "select * from yourdb" data1.recordset.movefirst do while not data1.recordset.eof strFirstField = data1.recordset.fields("Field1").value strSecondField = data1.recordset.fields("Field2").value data1.recordset.movenext loop

    Visual Basic help database

  • how to enable the textbox to be able to save text??
    M MyFathersSon

    mystring = text1.text //store what they've entered in a string combo1.additem mystring //store what's in the textbox in a combo next time user uses the system they drop down the combo to find their item and don't enter text in the text box

    Visual Basic help tutorial question

  • Printing problems in VB
    M MyFathersSon

    Thanks for your advice OldWarhorse. Not much on google.

    Visual Basic graphics question

  • Printing problems in VB
    M MyFathersSon

    I did but the results are the same. Thanks for your advice.

    Visual Basic graphics question

  • Detection of device on insertion/removal from system
    M MyFathersSon

    I might be wrong but I think that the only way to do this is by writing a driver. Devices being connected/disconnected cause an interrupt at KERNEL level, and those addresses are out of bounds in user mode.

    Visual Basic csharp question

  • Printing problems in VB
    M MyFathersSon

    Thanks for your suggestion. I placed a Printing.EndDoc statement as follows: For i = 0 To List2.ListCount - 1 Step 1 Printer.Print List2.List(i) Next i Printer.EndDoc ' added and this printed both text and graphic, but on separate pages. I'm not sure how to carry out your second suggestion. MyFathersSon

    Visual Basic graphics question

  • Printing problems in VB
    M MyFathersSon

    Hi all, I'm trying to print out text and graphics on the same page using VB's Printer.Print For i = 0 To List2.ListCount - 1 Step 1 Printer.Print List2.List(i) Next i If Clipboard.GetFormat(vbCFBitmap) Then Printer.PaintPicture Clipboard.GetData(), 0, 0 Printer.EndDoc End If The graphics gets printed out, but the text from the list box doesn't. Any ideas on how I can resolve this? Thanks MyFathersSon

    Visual Basic graphics question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups