Jump to content

BenoitRen

Member
  • Posts

    977
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Belgium

Everything posted by BenoitRen

  1. When I load a file's contents into it. I can only scroll part of the document horizontally. The vertical scroll bar doesn't have this problem. It's solved as soon as I make a change in the text. If I don't do it, the text is selected, but you can't see it is until you focus the RichEdit control. So I focus it.
  2. Animals don't have DNA?
  3. All versions? What nonsense. It sure as hell won't work with Windows 95.
  4. Right, that did it. Odd, usually the reference shows to cast it, which is why I didn't do it. GetClassName() requires you to allocate a buffer, which is always a pain. And I have no idea what the class names of those dialog boxes would be, since they're created from resources. There should be a better way to know which window I'm dealing with. If not, I'll just use an extra variable, I guess. Still open for suggestions on how to get the RichEdit control to update its scrollbars properly and how to have the search dialog focussed while still showing selected text.
  5. Close to a day here as well. I don't leave my computer on while I sleep either.
  6. Using the comdlg32.dll resources I was able to shave off an entire kB off my executable. Of course, now it's growing again. Anyway, something's been puzzling me. In NotepadEx, when you search, you see the RichEdit control highlighting the text while the search dialog is still focussed. To simulate this, I focus the RichEdit control after searching, but of course the search dialog isn't focussed anymore then. How do I achieve the same behaviour? I'm using modeless dialogs, by the way. Also, is there a way to find out which window type you're working with? Then I could set the right HWND handle of the dialog I'm closing to NULL while using the same message loop for both the search and replace windows. I've looked at GetWindow, but it doesn't seem to do what I want. I use these global handles so only one window of the same type can be opened. EDIT: I'm almost done with the Replace functionality. But I must be missing something obvious. Relevant piece of code: HWND hReplaceText = GetDlgItem(hwnd, IDC_REPLACE_TEXT); DWORD dwReplaceTextLen = GetWindowTextLength(hReplaceText); LPSTR pszReplaceText = GlobalAlloc(GPTR, dwReplaceTextLen + 1); GetWindowText(hReplaceText, pszReplaceText, dwSearchTextLen + 1); SendMessage(g_hRichEdit, EM_REPLACESEL, TRUE, pszReplaceText); GlobalFree(pszReplaceText); My compiler complains: "Error E2342 Kladblok.c 201: Type mismatch in parameter 'lParam' (wanted 'long', got 'signed char * *') in function ReplaceDlgProc". It's probably something to do with the difference between LPSTR and LPCTSTR, but I'm clueless. I've already tried passing the address instead, but it doesn't work.
  7. Yeah, I figured I could use Resource Hacker, but I was asking in case that the dialogs I wanted are not a resource... which it turns out they aren't. They aren't resources in either Wordpad, NotepadEx or plain Notepad. EDIT: I quickly figured to look in the DLLs that Wordpad uses, and it looks like the two dialogs I'm after are part of COMDLG32.DLL.
  8. I'm back to developing this. My main hurdle that demotivates me is that I don't know how to make my window dialogs the same as NotePadEx and Wordpad. Is there an easy way to replicate them? Like extracting the resources? I've fixed the long-standing line number problem. It always was off by one, since control counts starting from 0. I've tried doing InvalidateRect(g_hRichEdit, 0, TRUE); to solve the scrollbar problem. It seems to help a bit (a bit more is accesible), but it doesn't entirely fix the problem. Also, I'm trying to implement the "This file has been changed, do you wish to save it?" paradigm. But RichEdit controls normally don't send the EN_CHANGE message that I require for this. Maybe I need to subclass the control after all? This is confusing. EDIT: I figured it out. Send a WM_SETEVENTMASK message to the control with the ENM_CHANGE mask.
  9. That's neat! I bought one of those controllers a couple days ago myself. ...Would it work with Win95?
  10. GNU/Linux is growing now. But it doesn't mean that it will keep growing at the same rate. I'll be holding out for Haiku, a real desktop OS.
  11. USB support has been there since Win95 B. But it wasn't installed along with everything else. In Win98, though, I think it was. I think what he meant is that the device drivers are installed by default.
  12. Feelings are irrelevant, especially with the entirety of Win9x being obsolete these days. The installer is lying. Flash 7 IS supported on Windows 95. Adobe probably messed it up. But if you really intend this PC to be used for office work, why are you bothering with Flash and DirectX? OpenOffice works fine on Windows 95. This doesn't make sense. Either there are drivers, or there aren't. Kerio 2.1.5 is best. Can also be used on Windows 95.
  13. Why did you upgrade from Win95 B? It works great, and needs fewer patches after installation.
  14. Which Windows XP already does fine. Even Windows 98 SE did to a certain extent. Applications supporting an operating system isn't a feature, anyway. I'm starting to think we're not getting further than arguing semantics, so I'll leave it at that. And how, pray tell, does rearranging the user interface for ease of use require more RAM? Why should new features I don't use use RAM? More features does NOT necessarily translate into more memory usage. It should especially not use more memory if I'm not using the **** feature in the first place! That's just sloppy programming. Excuse me? The Linux computers at Walmart have been selling like hot cakes, and inexpensive laptops with Linux are all the rage recently.
  15. None of Windows' source code came from CP/M. Design and such, yes, like everything else. Doesn't make it the same product. Source code is different. It's always the same source code that's being used. Design plans are something different. A new plan might be based on an old one, but it's still a new plan. Again, that's why we have Windows versions and nice things like version control systems. It's not efficient at all, considering how little more it does for the average user. There's a mistaken belief that a new major version of a product should use up much more RAM, and that therefore it's great. This is nonsense. Look no further than Firefox 3 for a great example. Firefox 3 does more, has more options, is faster, yet requires less RAM than before. Imagine that!
  16. Based on how it works, its design, or its source code? You don't get it. Cars are not software. If you took the same parts from the previous model and molded it into the parts for the newer model, maybe you'd have a case. But this is software, and each OS version was made from the previous one. That's why they're versions!
  17. Code-wise, it pretty much is. It's XP with more network and server features. Version-wise, it's called by everyone, including Microsoft, WinNT 5.2. Don't fool yourself in thinking these are completely new products. There are two codebases. There's classic Windows: Windows 1.0, 1.0.1 Windows 2.0 Windows 3.0, 3.1, 3.11 Windows 95 (Windows 4.0) Windows 98 (Windows 4.1) Windows ME (Windows 4.9) Then there's the Windows born from the OS/2 project: Windows NT 3.51 Windows NT 4.0 Windows 2000 (Windows NT 5.0) Windows XP (Windows NT 5.1) Windows Server 2003 (Windows NT 5.2) Windows Vista (Windows NT 6.0) Windows Server 2008 (Windows NT 6.1)
  18. I fail to see how that matters at all.
  19. On a forum with subject "Windows 95/98/98SE/ME", this excuse doesn't go. Think of the Win95 and WinME users too.
  20. Oh, please. A large part of its success is because of it. Granted, they have good marketing, but don't fool yourself into thinking that's why they're on top. It has been documented.
  21. This KernelEx stuff won't help non-geeks and people who still use Windows 95. I'm a bit tired of hearing about it. It's not the holy grail. At least not for me. What the hell? They did this on purpose? Why those little...! This code should be salvaged.
  22. You're only taking my analogy at face value. My analogy works in that software needs hardware to work, like cars need roads to ride on. Not really. Win95 to Win98 is more of an update than a new product, for example.
  23. New cars, new movies and all that are entirely new products that stand on their own. We buy cars; we don't buy engines. To elaborate on herbalist's example, they don't make us 'upgrade' our roads every 3 to 5 years that can only have the newest cars riding on it.
  24. I've had this problem for many years now. It's not too severe, but it's annoying. I've already e-mailed Nathan Lineback about it, and he suggested to install a newer printer driver. Which I just did today, and it didn't solve anything. After I have printed something on my HP DeskJet 840C printer (doesn't matter from which program), AIM starts to get glitchy. Every time I receive a message or send a message while the window is focussed, that window freezes. I unfreeze it by unfocussing it. It's worth noting that after it unfreezes, the IM received/sent sound is played. It's not played before. It happens that when this scenario is in play, after several hours my Internet connection becomes unusable. Turning off the IM sounds stops it from freezing, but then my Internet connection seems to foul up even faster. The printer driver in use is version 4.3. Used to use 2.1. The sound card is SoundBlaster 16 PCI. WinSock 2 upgrade is installed. Does anyone have any ideas what the cause of my issue is?
×
×
  • Create New...