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
B

baerten

@baerten
About
Posts
494
Topics
159
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CDateTimeCtrl editing short year format
    B baerten

    I use the short format of the DateTime Control. So, I want only 2 digits for the year. But if I place the cursor in the year, it becomes 4 digits. Is there a possibility to avoid this? To recreate the OnDraw/OnKey logics is not so rational :sigh:

    C / C++ / MFC question

  • CDateTimeCtrl editing short year format
    B baerten

    Thanks for your reply I call it edit mode if I place simply the cursor into it. Without the focus the control displays 24.04.15 If I place the cursor in the day section of the control it displays 24.04.15 If I place the cursor in the year section of the control it displays 24.04.2015 I use Visual Studio 2013. It has the same behaviour on Windows 7 and 8 Thanks for any information

    C / C++ / MFC question

  • CDateTimeCtrl editing short year format
    B baerten

    Hi everybody, is there a possibility to edit the year in the short format(yy) aswell? I set the format "dd.MM.yy" and the date is shown correctly as "23.04.15" But if I place the cursor in the year-section, the year switches from 15 to 2015. I need that the year keeps 15 at the edit-mode. Big thanks for any information :) Regards -baerten-

    C / C++ / MFC question

  • CEdit Selection Orientation
    B baerten

    Exactly what I'm looking for. Big thanks :)

    C / C++ / MFC database question

  • CEdit Selection Orientation
    B baerten

    Hello everybody, is it possible to determine the orientation of the selection into a CEdit? If I select a part of the text with the mouse from left to right, the cursor blinks at the end. But if I select the text from right to left, the cursor blinks at the beginning of the selection. A GetSel(...); returns always the start and end index in the left-to-right order. Or is there a function to retrieve the blinking cursor in a selection? Big thanks in advance :)

    C / C++ / MFC database question

  • manipulare stdin
    B baerten

    Thanks for your answer :) I resolve it with multiple threads, like your idea ;) Greetings

    C / C++ / MFC help question

  • manipulare stdin
    B baerten

    Big thanks for your answer. I did it in the same way. The Main-Thread and 2 threads for the input (one for keyboard and a second one for the barcode-scanner) Greetings

    C / C++ / MFC help question

  • manipulare stdin
    B baerten

    Hello everybody, I'm creating an application for a barcodescanner-device. In the main-thread, a

    gets(buffer);

    waites for user key-input. In a separated thread I poll on the barcode-scanner. If the user scans a barcode, I extract the barcode and want to place it into the stdin-buffer. Then, the gets()-Function should see the (new) data into the stdin and returns like a real key-input. I tried it already this way :

    fscanf(stdin,"%s",barcode);
    fflush(stdin);

    but the gets(buffer); still waites for user input. Is it possible to manipulate the imput buffer in this way? Big thanks for any help :)

    C / C++ / MFC help question

  • Win CE getch() and clrscr()
    B baerten

    Hello everybody, i'm working on a small console application for Windows CE 5.0 Is there a possibility to perform a getch()? Because each key-stroke must be validated with the Return-Key to store the input into the stdin-buffer. So I need to analyse a key-stroke, without waiting for the Return. Is it also possible to perform a Clear-Screen on a Win CE console application or to set the position of the cursor? Or is it really impossible? :( Big thanks for any help :) Greetings

    Mobile help question

  • InvalidateRect -> GetUpdateRect
    B baerten

    Hello everybody, I have a big understanding problem. If I write those 2 lines

    InvalidateRect(CRect(0,10,0,10));
    GetUpdateRect(testrect);

    Then "testrect" is empty. Shouldn't it get the values of my InvalidateRect? Big thanks for any help :)

    C / C++ / MFC help question

  • call standard-draw of a control
    B baerten

    Thanks for your post. OnPaint is called in my control to paint/draw on the control. If I don't handle the WM_PAINT Message, the initial Drawing-Functions are called and the control is correctly drawn. If I handle this Message, the control is blank, no drawings on it. I need to draw all myself. I want to call a function into OnPaint to draw the initial/standard drawings (Background, Text, ...) and after this, I make some small paintings on it. Because I don't want to draw the entire CEdit by myself to simply draw 4 lines on it (an extra border in red) I hope I could explain it better Thanks :)

    C / C++ / MFC question

  • call standard-draw of a control
    B baerten

    Hello everybody, I like to draw a small border inside my CEdit. To "highlight" it. I use already OnEraseBgnd to fill the entire CEdit in another color. But in OnEraseBgnd I can't draw a small border, because the entire Background will be redrawn. If I handle OnPaint(), it works, but in this case, I need to redraw the entire control myself (text, background, etc ...) Is there a function-call to draw the standard-appearance, and after it, I start to draw myself on it? I tested already to call the Parent OnPaint() ( CEdit::OnPaint() ) but this won't work. Big thanks for any idea or basic instruction :) Greetings

    C / C++ / MFC question

  • Service access file on network folder
    B baerten

    Big thanks for your replies. That seems logic, but it doesn't work ... it's seriously a configuration problem. I'll make a workaround Thanks you two :)

    C / C++ / MFC sysadmin security help question

  • Service access file on network folder
    B baerten

    Hello everybody, I created a service which runs nicely on my local machine. If I like to test an existence of a file, which is located on a network-folder (net use g: \\...) then the function _access returns me -1 (not exists). If I call exactly the same function with the same filename in a standard application (not as a service) then all works fine. Is it an access-security problem, or do I use simply the wrong function to test the existence of a file? (I don't wanted to use a fopen,fclose) Big thanks for any ideas :)

    C / C++ / MFC sysadmin security help question

  • MainFrame SetRedraw to false before Child Closing
    B baerten

    I removed the LockWindowUpdate / SetRedraw(FALSE) (both won't work correctly) out of the closing-traitement. The first childwnd is created nicely, but if I open a second one, than the SetRedraw doesn't affect. I see the new frame a half-second on another position as the correct end-position. That seems ugly :sigh: Before I used a GetDesktopWindow()->SetRedraw(FALSE) ... that worked great, but it's very risky. If an error occurs, the Desktop-Window is never been redrawn correctly :~ How would you fix this kind of workarround. Simply create a child window, which will be displayed only after all sub-controls are created and the their positions are well moved. Big thanks :)

    C / C++ / MFC csharp visual-studio debugging help tutorial

  • MainFrame SetRedraw to false before Child Closing
    B baerten

    No, then all is working correctly That's strange to me :(

    C / C++ / MFC csharp visual-studio debugging help tutorial

  • MainFrame SetRedraw to false before Child Closing
    B baerten

    Hello everybody, in my MDI application, I use a theApp.MainFrame->SetRedraw(FALSE); to freeze the mainframe during the child window creation, to avoid creation flickering. When I close the child, I use the same technique. If the user hits the ESC key, I make the theApp.MainFrame->SetRedraw(FALSE); then I close the child. This technique works great for the creation of the child, but at the destruction it makes a big error. The mainframe seems transparent for all kind of inputs. The mainframe is correctly redrawn but mouse and key inputs are directly send to the window "under" my application (Visual Studio when i debug, for example) and this other window gets the focus. Has anyone an idea? Big thanks

    C / C++ / MFC csharp visual-studio debugging help tutorial

  • Memory allocation in multi-threaded application
    B baerten

    Hi everybody, I like to find out where a function or maybe an entire library allocates a huge amount of memory. In the task-manager I see that the application really uses 25MB of the memory and allocates a total of 166MB. I tested already GlowCode, but it displays only the memory which is really in use. Is there another tool or programming technique to find the call of the function? Big thanks for any help :)

    C / C++ / MFC performance help question

  • how to place CFromview on CDialog? [modified]
    B baerten

    Hi, you can add a TabWnd to the Dialog. Then you can add a CFormView to this TabWnd. When you move/resize the TabWnd, you can "hide" the TabWnd and you only see the active CFormView. Naturally you can switch the View into the TabWnd with another View... I hope this helps you Greetings

    C / C++ / MFC tutorial question

  • Mainframe Vista shadow
    B baerten

    thanks for your answer. I'll try to find another workaround to fix this "problem" if i can't find a solution, i drop it :-D

    C / C++ / MFC help 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