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
D

DiegoValdevino

@DiegoValdevino
About
Posts
11
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to get holding key down to repeat an action
    D DiegoValdevino

    Some quote from the MSDN[^] site: "The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and KeyUp events." You should do Keydown's instead of ProcessCmdKey, that's what you are doing anyways...

    bradsnobar wrote:

    switch (msg.Msg) { case WM_KEYDOWN:

    Just do it on the .NET way.

    bradsnobar wrote:

    switch (keyData) { case Keys.Down:

    You could write your switch statement on OnKeyDown method: private void _yourcontrol__KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) { switch(e.KeyCode) { case Key.Down: //Do something ... } ... } Beside, embedding System const's in your code is not a nice thing to do. Microsoft could just change the values and your code will go to the outerspace.:laugh: ps.: Some words from MSDN[^]: Notes to Inheritors When overriding the ProcessCmdKey method in a derived class, a control should return true to indicate that it has processed the key. For keys that are not processed by the control, the result of calling the base class's ProcessCmdKey method should be returned. Controls will seldom, if ever, need to override this method. Diego Valdevino

    C# question tutorial

  • How can I avoid the fliker of a form?
    D DiegoValdevino

    You've said your Form has a huge number of controls on it. Maybe you should do double buffer on the controls too.

    C# question

  • how to make a treeview node invisible using the code in C#
    D DiegoValdevino

    You could just override the DrawNode method, and based on a custom treenode tag or property, e.g IsInvisible, decide if the node must be drawn. Diego Valdevino.

    C# csharp tutorial

  • Custom Draw TreeView problem - Painted "+" got overriden
    D DiegoValdevino

    I am creating a custom draw treeview with level 0 treenodes draw by the code below. I want to paint the entire node row, including behind the PlusMinus button with a color of choice. The problem happens with my code running after the PlusMinus button is painted,thus erasing it. Is there some event fired before OnDrawNode painting the "+" that i am missing and should override? Setting a breakpoint on the begining of OnDrawNode and seeing the control, shows me the "+" is already painted. protected override void OnDrawNode(DrawTreeNodeEventArgs e){ if (e.Node.Level == 0){ Rectangle nodeRegion = new Rectangle(ClientRectangle.X, e.Node.Bounds.Y, ClientRectangle.Width, e.Node.Bounds.Height); SolidBrush nodeBackColor = new SolidBrush(Color.BlanchedAlmond); SolidBrush nodeForeColor = new SolidBrush(Color.Black); Font nodeFont = (e.Node.NodeFont == null) ? this.Font : e.Node.NodeFont; e.Graphics.FillRectangle(nodeBackColor, nodeRegion); // PROBLEM e.Graphics.DrawString(e.Node.Text.Trim(), nodeFont, nodeForeColor, e.Node.Bounds.Location); } else{ e.DrawDefault = true; } base.OnDrawNode(e); } ps.: It looks like the OnPaint event isnt fired on a TreeView. Couldnt find why is this on MSDN. Thanks! Diego Valdevino

    C# graphics debugging help question

  • hoow to owner draw controls?
    D DiegoValdevino

    I need to do some owner draw/ custom controls, and i dont have a clue

    C / C++ / MFC question

  • custom ownerdraw controls without MFC
    D DiegoValdevino

    How can I create some custom controls using only the win32 API??? Is there any tutorial about this subject?? ps: I kinda want to do something that looks like RealOne.

    C / C++ / MFC question c++ json tutorial

  • pdf about win32
    D DiegoValdevino

    does someone has a pdf or e-book about win32 programming? I need one! paladino_rapaz@bol.com.br

    C / C++ / MFC com question learning

  • put images on GDI
    D DiegoValdevino

    How can I put a array that represents an image on my window. Have I to create a DC or something? Name of functions and explanations would be very nice.

    C / C++ / MFC question graphics data-structures

  • TopMost Maximized Window?
    D DiegoValdevino

    I have just started today with dirctx8 and I want to make a window in full screen mode. The DX SDK says to create a "topmost" window with WS_EX_TOPMOST. I had my window topmost , but not Maximized. How can I do it ? ps: Without window borders!!!

    C / C++ / MFC question

  • Redimensioning Arrays
    D DiegoValdevino

    How can I change the size of an array? i need to change from a zero-size array to a n-bytes array ex: BYTE anything[]; and after some code : redimensionfunction(anything[], length); i am using vc++ 6

    C / C++ / MFC question c++ data-structures

  • Reading files without MFC
    D DiegoValdevino

    I am having a problem with the read function. I hava to read a pcx(binary) file into a struct . how can i do this?

    C / C++ / MFC question c++ help
  • Login

  • Don't have an account? Register

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