Search:
Type: Posts; User: eclessiastes
Search:
Search took 0.01 seconds.
-
January 11th, 2017, 08:43 PM
well after 3 days guessing and trial and error i found the problem.
Instead of WNDCLASSEXW i should've used WNDCLASSEX
now it works fine without unicode
-
January 11th, 2017, 07:16 PM
Could it be a bug in visual studio or something ?
-
January 11th, 2017, 07:10 PM
#include <Windows.h>
#include <CommCtrl.h>
#include <stdio.h>
char g_szClassName[] = "clasaDgg";
HINSTANCE ghInstance = NULL;
#define ID_ViewlogsListView 112
#define ID_ViewlogsListView2...
-
January 11th, 2017, 06:54 PM
I put breakpoint at default: but it doesn't trigger it nor does TRACE say anything.i just get 2 empty lines :confused . I attached source code in post 3
-
January 11th, 2017, 05:26 PM
I'm sure the problem is in
switch(pDispInfo->item.iSubItem) but i can't figure out what exactly i'm missing. Since the code is working in main dialog, it should work in any other new dialog created...
-
January 11th, 2017, 04:47 PM
Thank you Arjay,
The field is added in listbox owner-drawn but is empty. this problem is only when listview is not on main dialog but on other windows. This is complete source code for win32...
-
January 9th, 2017, 11:11 PM
I have 2 list view, one in main dialog and another in a second window that opens when i click a button.
First listview receive LVN_GETDISPINFO but the listview from second window doesn't get...
-
December 8th, 2016, 02:55 AM
Thank you 2kaud, i was struggling here for over an hour.
-
December 8th, 2016, 02:06 AM
struct strct { char * text; };
DWORD WINAPI STARTT(LPVOID param)
{
strct * ts = (strct *)param;
Sleep(2000);
printf("%s \r\n", ts->text);
delete ts;
return 0;
}
-
December 1st, 2016, 12:37 AM
You can't do it in mass.
It is easy to code this but it will not work for more than few results because amazon,google,yahoo and most sites have protection against third party searches. It will ask...
-
November 28th, 2016, 09:08 PM
probably because u use the same INPUT input. you could do INPUT input1 for one task, INPUT input2 for another etc. I had cases when SendInput didn't work for virtualized exe in different session id,...
-
November 28th, 2016, 07:21 PM
Have you tried mouse_event instead ? Simulate click down then move pointer and simulate click up
// Bring Window On Top
HWND window = FindWindow(NULL, "Window Title");...
-
November 21st, 2016, 04:50 AM
Hi
I changed my program code from mfc to win32 and i'm experiencing some issues. In mfc i was using afxbeginthread to createprocess() and then wait for its exit code, everything run ok. In win32 i...
-
October 2nd, 2016, 06:46 AM
to 103, 7, 276, 196 in pixels not dialog units
-
October 2nd, 2016, 06:36 AM
I want to move h_listview to position 103, 7, 276, 196 in Dialog Units but function MoveWindow() accepts Pixels only and it doesn't work to convert Dialog Units to Pixels. According to msdn function...
-
October 2nd, 2016, 06:23 AM
RECT r;
MapDialogRect(h_listview, &r);
MoveWindow(h_listview, r.left, r.top, r.right, r.bottom, TRUE);
Doesn't work either :confused:
-
October 2nd, 2016, 05:27 AM
RECT rc;
SetRect(&rc, 103, 7, 276, 196);
MapDialogRect(hwnd, &rc);
HWND h_listview = CreateWindowEx(WS_EX_CLIENTEDGE, WC_LISTVIEW, L"", WS_CHILD | WS_VISIBLE , rec.left, rec.top, 276,...
-
October 2nd, 2016, 03:58 AM
Hello
I have
"
CONTROL "", ID_ListControl, "SysListView32", LVS_REPORT | LVS_ALIGNLEFT | WS_BORDER | LVS_OWNERDATA | WS_TABSTOP, 103, 7, 276, 196
I'm trying to create control with...
-
September 10th, 2016, 04:16 AM
Hello
I'm creating a dialog from thread then i need to get the return value from it.
UINT CSTC_Analiser::StockDiagram(LPVOID param)
{
CSTC_Analiser* MainDialog = (CSTC_Analiser...
-
September 4th, 2016, 04:46 PM
Your code is much cleaner and professional. Thank you 2kaud!
-
September 4th, 2016, 03:48 PM
I had to use wstring instead of string. Just found out after many hours trying to figure out
-
September 4th, 2016, 03:01 PM
Hello
This code works fine
unsigned char buffer[] = "hello how are you";
SIZE_T size = sizeof(buffer);
std::string str;
for (const unsigned char *p = buffer; p < buffer + size; p++)...
-
August 31st, 2016, 12:23 AM
Thanks Igor,
PSECURITY_DESCRIPTOR psd = NULL;
BYTE sd[SECURITY_DESCRIPTOR_MIN_LENGTH];
psd = (PSECURITY_DESCRIPTOR)sd;
InitializeSecurityDescriptor(psd, SECURITY_DESCRIPTOR_REVISION);...
-
August 26th, 2016, 07:23 PM
thanks for help guys! i resolved it.
-
August 26th, 2016, 05:12 PM
char wnd_title[256];
HWND hwnd = GetForegroundWindow();
GetWindowTextA(hwnd, wnd_title, 256);
Take this simple example. What if window title has more than 256 characters ? App will crash.
My...
|
Click Here to Expand Forum to Full Width
|