11 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for cambalinho

heres a sample of using pointers on VB6: Option Explicit Private Const BI_RGB = 0 Private Const CBM_INIT = &H4 Private Const DIB_RGB_COLORS = 0 Private Const USE_BITMAP_ALPHA = &H1000000 Private Type BITMAPINFOHEADER biSize As Long biWidth As Long biHeight As Long biPlanes As Integer biBitCount As Integer biCompression As …

0
86
Member Avatar for cambalinho

i did a class for the timer precision using the timeSetEvent(). of course i can have more than 7 instances from the Timer class(with 200ms or something so small). is these a limitation or what? class Timer { private: static unsigned int TimerCount; UINT_PTR timerid; UINT m_uResolution=0; unsigned int TimerID=0; …

0
275
Member Avatar for cambalinho

i have my own region class: class region { private: BYTE* Get24BitPixels(HBITMAP pBitmap, WORD *pwWidth, WORD *pwHeight) { // a bitmap object just to get bitmap width and height BITMAP bmpBmp; // pointer to original bitmap info LPBITMAPINFO pbmiInfo; // bitmap info will hold the new 24bit bitmap info BITMAPINFO …

0
151
Member Avatar for skyyadav

In my program the commands are on left hand side , I want to move thses buttons to middle of window on click of mouse. I wrote this code n=but buttons are disappearing. Any solution case WM_LBUTTONDOWN: RECT buttonScreenRect; GetWindowRect(hButton, &buttonScreenRect); POINT buttonClientPoint; //buttonClientPoint.x = hButton.left; buttonClientPoint.x = buttonScreenRect.left; buttonClientPoint.y …

0
115
Member Avatar for devjeetroy

So I'm making a text editor with syntax highlighting. I'm subclassing richedit and using drawtext to overwrite(Exactly like in Iczelion's tutorials). I was trying to solve the highlighting part, and up till now, I've managed to paint over all of the text(no syntax discrimination). But I've run into a strange …

0
116
Member Avatar for NubTruck

Hi guys, I am trying to create a edit control, with pure win32. When the return key is pressed I would like it to run a section of code. I have tried getting it to handle the return key message through the main windows message handler. Unfortunately that causes it …

0
107
Member Avatar for kiranbhatter

Hi, As I want in my program to enable dynamic vertical scroll bar, i would like to use WM_VSCROLL inside WM_PAINT. Let me explain my situation. As soon as the user hits any key. On output window i am displaying as "key pressed <key>" and then i m moving to …

0
84
Member Avatar for stavros141

Hello there, I recently decide to learn and code Windows Services, After I learned the bare basic I thought I would make a program that logs the users program usage every 60 seconds I have coded the same thing without putting it in a service but apparently Services work differently …

0
118
Member Avatar for taylorc8

Hi, I'm trying to use an input device like a joystick as a mouse, and I've got some good behavior for desktop use by polling the state of the device in a loop and doing some work with the values, then using SendInput with some INPUT structures to make the …

0
102
Member Avatar for n.cramp

Hi all, having a bit of trouble with getting OpenGL picking to work in Win32. Note that pretty much the exact code works in GLUT, though i suspect that the reason i cant get it to work in Win32 is that it is not clear exactly how GLUT handles windowing …

0
86
Member Avatar for sixstorm1

Hi everyone, I am trying to print content from a Win32 richedit control, but it doesn't work. The text wraps to the half width of the page, and after printing, the text in the richedit is also messed up (word wrap to the half width of the box). I use …

0
146

The End.