How do I refresh the entire contents of the main window and all subwindows, listboxs, static boxes, etc. after resizing my main window.. As my main window is resized the other controls are repositioned according to the new window size, but the text is always staying without refreshing, and...
...char lpszFile[512]; // File name from list box
char lpszSaveFile[512];// File name to save as
pch = (LPCH) LocalAlloc(LPTR, sizeof(char)*81); //reading file buffer
pchTmp = pch;
for(int a = 0; a <= uintLBCount-1; a++)
{
ZeroMemory(lpszFile, sizeof(lpszFile))...
...position of the
// progress bar by the % of file read.
SendMessage(hwndPB, PBM_SETPOS, (WPARAM)
((iTotBytes/dwFileSize)*100), 0);
}
else break;
}
SetWindowText(hwndSTS, "...");
SendMessage(hwndPB, PBM_SETPOS, (WPARAM)0, 0);
}...
I am trying to find the count of items in my listbox and then delete those items but when I retrieve the count I get half of what I should. I have tried both ways of getting the listbox count.
example:
my listbox has 10 entries, the count would come back as 5.
my listbox has 3 entries, the...
...dropped files structure. I am using dev-cpp and I am getting the error:
97 C:\WINDOWS\Desktop\mysourceC++\main.cpp
invalid conversion from `void*' to `HDROP__*'
msdn.com says this is the way to attain the structure. I am confused. help please.
case WM_DROPFILES:
{
HDROP...
I keep getting this error I have listed below but I cannot figure out what is causing it. Please help. I would show you code but I don't even know what is causing the error.
Compiler: Default compiler
Building Makefile: "C:\WINDOWS\Desktop\mysource\Makefile.win"
Executing make...
make.exe -f...
Is there a faster way to insert a particular string into a string at a certain position? Here is the code I am using now. <pszText> is a static global variable accessed in several functions. My program is running to slow, would reallocation be faster than what I am doing now?
void Insert(int...
I need to use the number in my loop counter as part of a string to show the count in my status bar. but I cannot figure out how to convert my int variable into a lpstr variable for use.
I was thinking like this:
int Pages = 0;
lpstr Temp = &Pages;
how do I use the results from a user pressing "yes" or "no" in a message box? an if statement or in wndproc area?
INT Result = MessageBox(
hwnd, "This file has not been parsed.\r\n"
"Do you want to Parse this file now?",
"File not parsed",
MB_YESNO | MB_DEFBUTTON1 |...
is there a large scale text editor dialog box that can be used? Or should I just rethink this whole procedure and use textout to display the file text? Would the dialog be able to handle the amount of data using textout?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.